* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --teal: #a3ccaa;
  --lightteal: #d8e9da;
  --darkgray: #2c2c2c;
  --lightgray: #f5f5f5;
  --gray: #a29f9a;
  --red: #cd325a;
  --green: #61a86d;
  --darkgreen: #053e38;
  --header-width: 255px;
}

body {
  font-family: "Inter", sans-serif;
  /*  body color */
  background: white;
  /*  text color*/
  color: var(--darkgray);
  font-size: 16px;
  line-height: 1.5em;
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 5px;
}

h1 {
  line-height: 1.3em;
  font-size: 3em;
  margin-bottom: 30px;
}

h2,
h3,
h4 {
  letter-spacing: 1px;
}

p,
h2,
h3,
h4 {
  margin-bottom: 20px;
  margin-top: 0px;
}

h2 {
  font-weight: 300;
}

h3 {
  font-size: 1.5em;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  transition: 0.3s;
  color: inherit;
}

ul,
ol {
  padding-left: 40px;
}

ul li,
ol li {
  margin-bottom: 5px;
}

.container {
  position: relative;
}

.subpage-content {
  /*margin: 60px auto;*/
}

.subpage-content h2 {
  font-weight: 800 !important;
}

.subpage-content p a,
.subpage-content li a {
  border-bottom: 1px solid var(--teal);
  font-weight: 600;
}

.subpage-content p a:hover,
.subpage-content li a:hover {
  color: var(--teal);
}

.subpage-content ul {
  margin-bottom: 20px;
}

/*Referring DVM form styles*/

.referring-dvm-form-wrapper {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.referring-dvm-form-wrapper h2 {
  color: var(--darkgreen);
  margin-bottom: 10px;
}

.referring-dvm-form-wrapper label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.referring-dvm-form-wrapper input,
.referring-dvm-form-wrapper textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid var(--gray);
  border-radius: 4px;
  background-color: var(--lightgray);
}

.referring-dvm-form-wrapper textarea {
  resize: vertical;
  min-height: 80px;
}

.referring-dvm-form-wrapper .required {
  color: var(--red);
}

.referring-dvm-form-wrapper .note {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 5px;
}

.referring-dvm-form-wrapper .submit-button {
  margin-top: 40px;
  background-color: var(--darkgreen);
  border: 2px solid var(--darkgreen);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.4s;
  font-weight: bold;
}

.referring-dvm-form-wrapper .submit-button:hover {
  background-color: var(--lightgray);
  color: var(--darkgreen);
  cursor: pointer;
}

/*FOOTER TESTIMONIAL BASE STYLES*/

#footer-testimonials {
  background-color: var(--darkgreen);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.875rem;
  line-height: 1.3em;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--lightteal);
}

.section-subtitle {
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
  color: var(--teal);
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
}

.carousel-overflow {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 500ms ease-in-out;
}

.carousel-track.no-transition {
  transition: none;
}

.testimonial-card {
  width: 100%;
  flex-shrink: 0;
  padding: 0 0.75rem;
}

.card-inner {
  background-color: rgba(163, 204, 170, 0.1);
  border: 1px solid var(--teal);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Rating Stars */
.rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--teal);
  fill: var(--teal);
}

/* Testimonial Content */
.testimonial-content {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--lightteal);
  flex-grow: 1;
}

/* Author Info */
.author-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--lightteal);
}

.author-role {
  font-size: 0.875rem;
  color: var(--teal);
}

/* Navigation Buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--teal);
  color: var(--darkgreen);
  border: none;
  cursor: pointer;
  transition: transform 200ms;
  z-index: 10;
}

.nav-button:hover {
  transform: translateY(-50%) scale(1.1);
}

.nav-button-prev {
  left: -1rem;
}

.nav-button-next {
  right: -1rem;
}

.nav-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Indicators */
.indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.indicator-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(163, 204, 170, 0.3);
  border: none;
  cursor: pointer;
  transition: background-color 300ms;
  padding: 0;
}

.indicator-dot.active {
  background-color: var(--teal);
}

/*SUBPAGE BASE BACKGROUND STYLES*/

#meet-our-team-hero{
  background: url(images/meet-our-team-hero.webp) no-repeat center;
  background-size: cover;
  background-position: 60% 40%;
}
#employment-opportunities-hero{
  background: url(images/employment-opportunities-hero.webp) no-repeat center;
  background-size: cover;
  background-position: 85% 15%;

}#pet-emergency-hero{
  background: url(images/pet-emergency-hero.webp) no-repeat center;
  background-size: cover;
}
#what-to-expect-hero{
  background: url(images/what-to-expect-hero.webp) no-repeat center;
  background-size: cover;
  background-position: 20% 80%;
}
#emergency-services-hero{
  background: url(images/emergency-services-hero.webp) no-repeat center;
  background-size: cover;
}
#specialty-surgery-hero{
  background: url(images/surgery-hero.webp) no-repeat center;
  background-size: cover;
  background-position: 60% 40%;
}
#diagnostic-imaging-hero{
  background: url(images/diagnostic-imaging-hero.webp) no-repeat center;
  background-size: cover;
  background-position: 40% 60%;
}
#chemotherapy-hero{
  background: url(images/chemotherapy-hero.jpg) no-repeat center;
  background-size: cover;
  background-position: 40% 60%;
}
#physical-therapy-hero{
  background: url(images/physical-therapy-hero.webp) no-repeat center;
  background-size: cover;
  background-position: 60% 40%;
}
#contact-hero{
  background: url(images/contact-hero.webp) no-repeat center;
  background-size: cover;
  background-position: 80% 20%;
}

/*** DESKTOP STYLES ***/
@media (width >= 1100px) {
  .container {
    max-width: 1100px;
    margin: 0 auto;
  }

  .content {
    padding: 80px 0;
    width: calc(100% - var(--header-width));
    overflow: hidden;
    margin-left: var(--header-width);
  }

  /*** HEADER DESKTOP STYLES ***/

  #closebtn {
    display: none;
  }

  #mobileNav {
    display: none;
  }

  .sidenav {
    height: 100%;
    width: var(--header-width);
    padding: 10px 0px 10px 5px;
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    background: white;
    /*    overflow-x: hidden;*/
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
    color: var(--gray);
  }

  a#navLogo {
    align-self: center;
    display: block;
    width: 100px;
    border-bottom: none;
  }

  a#navLogo:before {
    display: none;
  }

  #navLogo img {
    width: 100%;
    height: auto;
  }

  .sidenav h3 {
    color: var(--red);
    font-size: 1.1em;
    text-transform: none;
    margin-bottom: 20px;
    text-align: center;
  }

  .sidenav h3 span {
    color: var(--gray);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    width: 100%;
  }

  .nav-links a {
    position: relative;
    color: var(--gray);
    border-bottom: 1px solid var(--lightteal);
    font-weight: 700;
    letter-spacing: 2px;
    padding: 12px;
    text-transform: uppercase;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 13px;
  }

  .nav-links i {
    color: var(--teal);
    transition: 0.3s;
    margin: 0 10px 0 0;
  }

  .nav-links a i:nth-of-type(2) {
    margin: 0 0 0 auto;
  }

  .nav-links a:hover:before {
    width: 100%;
  }

  .nav-links a:hover {
    background: var(--lightteal);
    color: var(--darkgreen);
  }

  .nav-links a:hover i {
    color: var(--darkgreen);
  }

  /*dropdown menu desktop*/

  .dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: -1px;
    left: 100%; /* Fly out to the right */
    background: rgb(5, 62, 56, 0.9);
    display: none;
    flex-direction: column;
    width: auto;
    padding: 10px 10px 13px;
    border-top: 2px solid var(--darkgreen);
    box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.3);
  }

  .dropdown-menu a {
    padding: 6px 10px;
    color: white;
    text-transform: none;
    white-space: nowrap;
    border-bottom: none;
    transition: color 0.4s, transform 0.6s;
  }

  .dropdown-menu a:hover {
    color: var(--green);
    background: transparent;
    transform: translateX(5px);
  }

  .dropdown:hover .dropdown-menu {
    display: flex;
  }

  .nav-contact {
    margin-top: 20px;
    padding-left: 12px;
  }

  .nav-contact a {
    position: relative;
    font-weight: 600;
    padding-bottom: 2px;
  }

  .nav-contact a:before {
    position: absolute;
    content: "";
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--teal);
    width: 0;
    transition: 0.4s;
  }

  .nav-contact a:hover {
    color: var(--teal);
  }

  .nav-contact a:hover:before {
    width: 100%;
  }

  .nav-contact p {
    margin: 10px 0;
    font-size: 0.9em;
  }

  .nav-contact p span {
    color: var(--red);
    font-weight: bold;
    font-size: 1.2em;
  }

  .nav-social {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100px;
    padding-left: 12px;
  }

  .nav-social a {
    font-size: 1.8em;
  }

  .nav-social a:hover {
    color: var(--teal);
  }

  /*MAIN BODY DESKTOP*/

  #homepage-hero {
    background: url(images/homepage-hero2.webp) no-repeat center;
    background-size: cover;
    color: white;
    padding-bottom: 100px;
    position: relative;
    background-position: left top;
  }

  #homepage-hero:before{
    position: absolute;
    content:'';
    left:0;
    top:0;
    height: 100%;
    width: 100%;
    opacity: .7;
    z-index: 0;
    background-image: linear-gradient(130deg, rgba(0, 0, 0, 0.96) 50%, var(--darkgreen) 100%);;
  }

  #homepage-hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 600px;
    padding-left: 40px;
    position: relative;
    z-index: 2;
  }

  #homepage-hero h1 span,
  #homepage-hero h3 span {
    font-size: 2em;
    display: block;
    color: white;
  }

  #homepage-hero h1 {
    font-size: 5.5em;
    color: var(--teal);
    line-height: 1.75em;
    letter-spacing: 2px;
    margin-bottom: 60px;
  }

  /*#homepage-hero h1 span{
    
  }*/

  #homepage-hero h1,
  #homepage-hero h3 {
    width: 500px;
  }

  #homepage-hero h3 {
    margin-bottom: 40px;
    line-height: 1.75em;
  }

  #homepage-hero a {
    display: block;
    width: 250px;
    text-align: center;
    padding: 12px 20px;
    color: white;
    background: var(--red);
    border: 3px solid var(--red);
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
  }

  #homepage-hero a:hover {
    background: rgba(0, 0, 0, 0.3);
  }

  #pet-emergency {
    background: var(--lightgray);
    position: relative;
    overflow: hidden;
    color: var(--darkgreen);
  }

  #pet-emergency .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .pet-map {
    width: 48%;
    border: 2px solid var(--teal);
    position: relative;
    z-index: 1;
  }

  .pet-map iframe {
    width: 100%;
    height: 500px;
  }

  .pet-text {
    width: 48%;
  }

  .pet-text:before {
    height: 110%;
    width: 150%;
    content: "";
    position: absolute;
    right: 50%;
    top: 50%;
    transform: translate(85%, -50%);
    background: var(--lightteal);
    z-index: 0;
  }

  .pet-text h1,
  .pet-text h2,
  .pet-text p,
  .pet-text a {
    z-index: 1;
    position: relative;
  }

  /*.pet-text h1{
    color: var(--teal);
  }*/

  .pet-text h2 {
    color: var(--gray);
  }

  .pet-text a {
    padding: 12px 30px;
    color: white;
    background: var(--teal);
    /*    border:3px solid var(--teal);*/
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
  }

  .pet-text a:hover {
    background: var(--darkgreen);
  }

  #all-hour {
    padding: 0;
  }

  #all-hour .container {
    position: relative;
    height: 850px;
  }

  .all-hour-text {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 75%;
    padding-left: 10px;
    z-index: 3;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .all-hour-text h1,
  .all-hour-text p,
  .all-hour-text a,
  .all-hour-text ul {
    position: relative;
    z-index: 3;
  }

  .all-hour-text h1 {
    line-height: 1.75em;
    font-size: 1.75em;
    text-transform: none;
  }

  .all-hour-text h1 span {
    font-size: 2em;
    font-weight: 900;
    display: block;
    letter-spacing: 3px;
  }

  .all-hour-text p {
    width: 500px;
  }

  .all-hour-text:before {
    position: absolute;
    content: "";
    background: var(--teal);
    left: -110%;
    top: 0;
    height: 100%;
    width: 200%;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  }

  .all-hour-text ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, auto);
    gap: 10px 20px;
    margin-bottom: 30px;
    font-size: 1.33em;
    font-weight: bold;
    background: rgba(97, 168, 109, 0.7);
    width: 830px;
    padding: 15px;
    padding-left: 30px;
    border-radius: 10px;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    backdrop-filter: blur(8px);
    padding-right: 100px;
    /*border: 1px solid rgba(97, 168, 109, .7);*/
    /*box-shadow: 10px 10px 20px rgba(5, 62, 56, .75);*/
  }

  .all-hour-text li {
    font-size: 14px;
  }

  .all-hour-text ul li {
    margin-bottom: 10px;
  }

  .all-hour-text a {
    background: var(--darkgreen);
    padding: 12px 30px;
    color: white;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
  }

  .all-hour-text a:hover {
    background: white;
    color: var(--darkgreen);
  }

  .all-hour-img {
    position: absolute;
    right: -86%;
    top: 0;
    height: 100%;
    width: 150%;
    z-index: 1;
    background: url(images/homepage-cat.webp) no-repeat left center;
    background-size: cover;
  }

  #homepage-vets {
    background: var(--lightgray);
    padding: 0px;
  }

  #homepage-vets .container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    max-width: 100%;
  }

  .vet-container {
    display: flex;
    flex-direction: column;
    width: 50%;
    position: relative;
    z-index: 1; /* Ensures content inside vet-grid is above its ::before */
    padding: 80px 80px 80px calc((100% - 1100px) / 2);
  }

  .vet-container h1 {
    color: var(--teal);
    font-weight: 900;
    letter-spacing: 3px;
  }

  .vet-container:before {
    position: absolute;
    content: "";
    z-index: -1; /* Ensures it stays behind the .vet-grid content */
    background: var(--lightgray);
    width: 125%;
    height: 100%;
    left: 0;
    top: 0;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    display: none;
  }

  .vet-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
  }

  .vet-item {
    color: var(--gray);
    transition: 0.3s;
    font-weight: 600;
    display: flex;
    flex-direction: column;
  }

  .vet-item:hover {
    cursor: pointer;
    color: var(--green);
    transform: scale(1.03);
    box-shadow: 2px 4px 10px 2px rgba(163, 204, 170, 1);
  }

  .vet-img {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
  }

  .vet-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .vet-item p {
    padding: 0 5px;
    line-height: 1.1em;
    text-align: center;
    margin-bottom: 10px;
    font-size: 9pt;
  }

  .vet-item .p-title {
    display: block;
    text-align: center;
    color: var(--green);
    font-size: 0.7em;
    margin-top:auto;
  }

  .vet-bio {
    min-height: 700px;
    width: 50%;
    position: relative;
    z-index: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*padding-left: 100px;*/
  }

  .vet-bio-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .vet-bio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .vet-bio-text {
    padding: 0 60px 20px 18%;
  }

  .vet-bio-text h3 {
    color: var(--darkgreen);
    padding-bottom: 5px;
    border-bottom: 2px solid var(--teal);
  }

  .vet-bio-text span {
    color: var(--green);
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
  }

  .vet-bio-text p {
    font-size: 0.9em;
  }

  #vet-grid-mobile {
    display: none;
  }

  /*SUBPAGE DESKTOP*/

  .subpage-hero {
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--darkgreen);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
  }

  .subpage-hero:before{
    position: absolute;
    content:'';
    left:0;
    top:0;
    height: 100%;
    width: 100%;
    opacity: .7;
    z-index: 0;
    background-image: linear-gradient(130deg, rgba(0, 0, 0, 0.96) 50%, var(--darkgreen) 100%);;
  }

  .subpage-hero h1 {
    margin-bottom: 0px;
    z-index: 1;
  }

  .subpage-content {
    padding: 80px 20px;
  }

  /*FOOTER TESTIMONIAL DESKTOP*/

  .section-title {
    font-size: 3rem;
  }

  .section-subtitle {
    font-size: 1.25rem;
  }

  .testimonial-card {
    width: 33.333%;
    padding: 0 1rem;
  }

  .card-inner {
    padding: 2rem;
  }

  .testimonial-content {
    font-size: 1.125rem;
  }

  .nav-button {
    width: 3rem;
    height: 3rem;
  }

  .nav-button-prev {
    left: -1rem;
  }

  .nav-button-next {
    right: -1rem;
  }

  .nav-button svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  /*FOOTER DESKTOP*/

  .footer-banner {
    background: var(--teal);
    margin-left: var(--header-width);
    color: white;
    font-weight: bold;
    padding: 20px;
    font-size: 1.15em;
    letter-spacing: 1px;
    width: calc(100% - var(--header-width));
  }

  .footer-banner .container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
  }

  .footer-banner p {
    margin: 10px 0;
    font-size: 1.5em;
  }

  .footer-banner a {
    display: inline-block;
    background: var(--darkgreen);
    padding: 12px 40px;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
  }

  .footer-banner a:hover {
    background: white;
    color: var(--darkgreen);
  }

  footer {
    padding: 60px 20px;
    background: var(--lightgray);
    color: var(--darkgray);
    margin-left: var(--header-width);
    width: calc(100% - var(--header-width));
  }

  footer .container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-col {
    max-width: 60%;
  }

  .footer-col h3 {
    text-transform: uppercase;
    color: var(--darkgreen);
  }

  .footer-col ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0px;
  }

  .footer-col ul li {
    list-style-type: none;
    margin-bottom: 10px;
    font-size: 14px;
  }

  .footer-col li a,
  .footer-col p a {
    border-bottom: 1px solid var(--teal);
    position: relative;
    padding-bottom: 2px;
  }

  .footer-col li a:hover,
  .footer-col p a:hover {
    color: var(--green);
  }

  .footer-col li a:before,
  .footer-col p a:before {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 0;
    background: var(--green);
    height: 1px;
    transition: 0.3s;
  }

  .footer-col li a:hover:before,
  .footer-col p a:hover:before {
    width: 100%;
  }

  .footer-col:nth-of-type(2) {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .footer-col:nth-of-type(2) h3 {
    text-align: right;
  }

  #footer-home-link {
    width: 170px;
    margin-bottom: 20px;
    display: inline-block;
  }

  #footer-home-link img {
    width: 100%;
    height: auto;
  }

  #sub-footer {
    background: var(--darkgreen);
    padding: 20px;
    color: white;
    text-align: center;
    font-size: 0.9em;
    margin-left: var(--header-width);
    width: calc(100% - var(--header-width));
  }

  #sub-footer a {
    border-bottom: 1px solid var(--teal);
    font-weight: bold;
  }

  #sub-footer a:hover {
    color: var(--teal);
  }

  .footer-logos {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
    margin-left: 25px;
  }

  .footer-logos img {
    width: 50%;
  }

  .footer-logos a:nth-of-type(1) {
  }

  .footer-logos a:nth-of-type(2) {
    margin-top: 10px;
  }

  .do-not-email {
    font-size: 12px;
    align-self: flex-end;
    color: grey;
    font-weight: 700;
  }

  .contact-page-flexbox {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .contact-page-map {
    width: 45%;
  }

  .contact-page-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 45%;
  }

  .contact-page-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
  }

  .contact-page-text h2 {
    color: var(--darkgreen);
    font-size: 30px;
    position: relative;
    line-height: 1;
  }

  /* .contact-page-text h2:after {
    content: "";
    background-color: var(--darkgreen);
    width: 172px;
    height: 4px;
    position: absolute;
    top: 45% !important;
    left: 0%;
  } */

  .contact-page-text h3 {
    color: var(--darkgreen);
    font-size: 18px;
  }

  .contact-page-info {
    display: flex;
    flex-direction: column;
  }

  .contact-page-type {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .contact-page-type:nth-of-type(2) {
    margin-top: 35px;
    margin-bottom: 35px;
  }

  .contact-page-type i {
  }

  .contact-page-icon {
    display: flex;
    justify-content: center;
  }

  .contact-page-icon i {
    font-size: 32px;
    background-color: var(--teal);
    border-radius: 50%;
    padding: 16px;
    color: white;
  }

  .contact-page-type a {
    text-decoration: none;
    color: var(--accent-blue);
    margin-left: 15px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--teal);
    transition: all 0.5s;
    cursor: pointer;
  }

  .contact-page-type a:hover {
    color: var(--red);
    transition: all 0.5s;
  }
}

/*** MOBILE STYLES ***/
@media (width <= 1099px) {
  .container {
    width: 100%;
    margin: 0 auto;
  }

  .content {
    padding: 60px 20px;
  }

  h1 {
    font-size: 2em;
  }

  /***** HEADER MOBILE STYLES *****/

  #mobileNav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background: white;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
  }

  #openbtn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    transition: 0.4s;
    font-size: 2em;
    z-index: 11;
    color: var(--teal);
  }

  #closebtn {
    position: absolute;
    top: 25px;
    right: 20px;
    transition: 0.4s;
    font-size: 1.5em;
    z-index: 11;
    color: var(--teal);
  }

  #mobileLogo {
    height: 70px;
    display: block;
  }

  #mobileLogo img {
    height: 100%;
    width: auto;
  }

  .sidenav {
    height: 100%;
    width: 0;
    background: #fffafa;
    transform-origin: right;
    position: fixed;
    transition: 0.4s;
    z-index: 10;
    top: 0;
    right: 0;
    overflow-x: hidden;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
    color: var(--gray);
    z-index: 11;
  }

  a#navLogo {
    display: block;
    width: 100px;
    margin-bottom: 10px;
    border-bottom: none;
  }

  a#navLogo:before {
    display: none;
  }

  #navLogo img {
    width: 100%;
    height: auto;
  }

  .sidenav h3 {
    color: var(--red);
    font-size: .9em;
    text-transform: none;
    margin-bottom: 0px;
  }

  /*staggered nav fade in effect*/

  .sidenav #navLogo,
  .nav-links a,
  .drop-btn,
  .sidenav h3,
  .sidenav .nav-contact,
  .sidenav .nav-social {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  /* Staggered delay for fade-in */
  .sidenav.show h3,
  .sidenav.show #navLogo {
    opacity: 1;
    transform: translateY(0);
  }

  .sidenav.show .nav-links a,
  .sidenav.show .drop-btn {
    transition-delay: 0.3s, 0.3s, 0s, 0s;
    opacity: 1;
    transform: translateY(0);
  }

  .show .nav-links a {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, background 0.3s,
      color 0.3s;
  }

  .sidenav.show .nav-contact {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
  }

  .sidenav.show .nav-social {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 20px 0 30px;
  }

  .nav-links i {
    color: var(--teal);
    font-size: 1.33em;
    margin-right: 10px;
    transition: 0.3s;
  }

  .nav-links a {
    position: relative;
    border-bottom: 1px solid var(--lightgray);
    font-weight: 600;
    letter-spacing: 2px;
    padding: 14px 16px;
    text-transform: uppercase;
    display: flex;
    align-items: flex-start;
  }

  .nav-links a:before {
    display: none;
  }

  .nav-links a:hover {
    background: var(--lightteal);
    color: var(--darkgreen);
  }

  .nav-links a:hover i {
    color: var(--darkgreen);
  }

  .drop-btn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .drop-btn i:nth-of-type(2) {
    margin-left: auto;
    transform: rotate(90deg);
  }

  .dropdown-menu {
    display: none;
    flex-direction: column;
    background: var(--lightgray);
    padding: 15px 20px 25px;
  }

  .dropdown.active .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    padding: 10px 15px 10px 25px;
    border-bottom: 1px solid var(--lightteal);
    font-weight: 500;
    text-transform: none;
  }

  .drop-btn .fa-angle-right {
    transition: transform 0.3s ease;
  }

  .drop-btn.active .fa-angle-right {
    transform: rotate(-90deg);
  }

  .nav-contact {
    margin-top: 20px;
  }

  .nav-contact a {
    position: relative;
    font-weight: 600;
  }

  .nav-contact a:before {
    position: absolute;
    content: "";
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--teal);
    width: 0;
    transition: 0.4s;
  }

  .nav-contact a:hover {
    color: var(--teal);
  }

  .nav-contact a:hover:before {
    width: 100%;
  }

  .sidenav p {
    margin: 10px 0;
  }

  .sidenav p span {
    color: var(--red);
    font-weight: bold;
    font-size: 1.25em;
  }

  .nav-social {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .nav-social a {
    font-size: 1.5em;
    display: inline-block;
  }

  .nav-social a:nth-of-type(1){
    margin-right:10px;
  }

  .nav-social a:hover {
    color: var(--teal);
    transform: rotateY(360deg);
  }

  /*MAIN BODY MOBILE*/

  #homepage-hero {
    background: url(images/homepage-hero2.webp) no-repeat center;
    background-size: cover;
    color: white;
    padding-bottom: 100px;
    margin-top: 75px;
    position: relative;
  }

  #homepage-hero:before{
    position: absolute;
    content:'';
    left:0;
    top:0;
    height: 100%;
    width: 100%;
    opacity: .7;
    z-index: 0;
    background-image: linear-gradient(130deg, rgba(0, 0, 0, 0.96) 50%, var(--darkgreen) 100%);;
  }

  #homepage-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #homepage-hero h1 {
    font-size: 2.5em;
    color: var(--teal);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: 400px;
  }

  #homepage-hero h1 span,
  #homepage-hero h3 span {
    font-size: 2em;
    display: block;
    color: white;
    line-height: 1.2em;
  }

  #homepage-hero h1,
  #homepage-hero h3 {
    color: var(--teal);
  }

  #homepage-hero h3 {
    margin-bottom: 30px;
    line-height: 1.75em;
    max-width: 400px;
    width: 100%;
    text-align: center;
  }

  #homepage-hero a {
    display: block;
    width: 250px;
    text-align: center;
    padding: 12px 20px;
    color: white;
    background: var(--red);
    border: 3px solid var(--red);
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
  }

  #homepage-hero a:hover {
    background: rgba(0, 0, 0, 0.3);
  }

  /*MAIN BODY MOBILE*/

  #pet-emergency {
    background: var(--lightgray);
    position: relative;
    overflow: hidden;
    color: var(--darkgreen);
  }

  #pet-emergency .container {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }

  .pet-map {
    border: 2px solid var(--teal);
    position: relative;
    z-index: 1;
    margin-top: 60px;
    width: 100%;
  }

  .pet-map iframe {
    width: 100%;
    height: 300px;
  }

  /*.pet-text:before{
    height: 100%;
    width: 150%;
    content: '';
    position: absolute;
    right:50%;
    top:50%;
    transform: translate(90%, -50%);
    background: var(--lightteal);
    z-index: 0;
  }

  .pet-text h1, .pet-text h2, .pet-text p, .pet-text a{
    z-index: 1;
    position: relative;
  }*/

  .pet-text h1 {
    color: var(--teal);
    text-align: center;
  }

  .pet-text h2 {
    color: var(--gray);
    text-align: center;
  }

  .pet-text a {
    padding: 12px 30px;
    color: white;
    background: var(--teal);
    /*    border:3px solid var(--teal);*/
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
  }

  .pet-text a:hover {
    background: var(--darkgreen);
  }

  #all-hour {
    padding: 0;
    overflow: hidden;
  }

  #all-hour .container {
    position: relative;
  }

  .all-hour-text {
    position: relative;
    z-index: 3;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: var(--teal);
    padding: 60px 20px 0;
  }

  .all-hour-text h1,
  .all-hour-text p,
  .all-hour-text a,
  .all-hour-text ul {
    position: relative;
    z-index: 3;
  }

  .all-hour-text h1 {
    font-size: 1.75em;
    text-transform: none;
    margin: 0 auto 30px;
    color: var(--darkgreen);
    text-align: center;
  }

  .all-hour-text h1 span {
    font-size: 1.5em;
    line-height: 1.2em;
    font-weight: 900;
    display: block;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: white;
  }

  .all-hour-text p {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: justify;
  }

  .all-hour-text:before {
    position: absolute;
    content: "";
    background: var(--teal);
    left: 0;
    bottom: -13%;
    height: 100%;
    width: 100%;
    z-index: 2;
    transform: skewY(-10deg);
  }

  .all-hour-text ul {
    margin-bottom: 30px;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 auto 20px;
  }

  .all-hour-text ul li {
    margin-bottom: 10px;
  }

  .all-hour-text a {
    background: var(--darkgreen);
    padding: 12px 30px;
    color: white;
    display: inline-block;
    margin: 10px auto 0;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
  }

  .all-hour-text a:hover {
    background: white;
    color: var(--darkgreen);
  }

  .all-hour-img {
    height: 500px;
    z-index: 1;
    background: url(images/homepage-cat.webp) no-repeat center;
    background-size: cover;
  }

  #homepage-vets {
    display: none;
  }

  #vet-grid-mobile {
    background: var(--darkgreen);
    color: white;
    position: relative;
    overflow: hidden;
  }

  /*#vet-grid-mobile:before{
    position: absolute;
    content: '';
    background: var(--gray);
    bottom:50%;
    left:-50%;
    height: 150%;
    width: 150%;
    transform: rotate(-10deg);
  }*/

  #vet-grid-mobile .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #vet-grid-mobile h1 {
    color: var(--lightteal);
    text-align: center;
  }

  #vet-grid-mobile a {
    background: var(--lightteal);
    border: 2px solid var(--lightteal);
    padding: 12px 30px;
    color: var(--darkgreen);
    display: inline-block;
    margin: 10px auto 0;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 2px 4px 10px rgba(216, 233, 218, 0.25);
  }

  #vet-grid-mobile a:hover {
    background: transparent;
    color: var(--lightteal);
  }

  /*SUBPAGE MOBILE*/

  .subpage-hero {
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--darkgreen);
    color: white;
    text-align: center;
    margin-top: 74px;
    position: relative;
  }

  .subpage-hero:before{
    position: absolute;
    content:'';
    left:0;
    top:0;
    height: 100%;
    width: 100%;
    opacity: .7;
    z-index: 0;
    background-image: linear-gradient(130deg, rgba(0, 0, 0, 0.96) 50%, var(--darkgreen) 100%);;
  }

  .subpage-hero h1 {
    margin-bottom: 0px;
    z-index: 1;
  }

  /*Referring DVM form mobile styles*/

  .referring-dvm-form-wrapper {
    padding: 20px;
  }

  /*MEET OUR DOCTORS MOBILE STYLES*/

  #homepage-vets{
    display: block;
  }

  .vet-bio{
    display: none;
  }

  .vet-container h1{
    color: var(--green);
    text-align: center;
    margin-bottom: 60px;
  }

   .vet-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .vet-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  /* Style the clickable header area */
  .vet-item-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
    position: relative;
  }

  .vet-item:hover .vet-item-header {
    background: #e9ecef;
  }

  /* Arrow indicator */
  .vet-item-header::after {
    content: "▼";
    position: absolute;
    right: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    transition: transform 0.3s ease;
  }

  .vet-item.expanded .vet-item-header::after {
    transform: rotate(180deg);
  }

  .vet-item-header .vet-img {
    margin-right: 1rem;
    flex-shrink: 0;
  }

  .vet-item-header .vet-img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2c5530;
  }

  .vet-item-header-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #2c5530;
    font-weight: 600;
  }

  .vet-item-header-info .p-title {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin: 0;
  }

  /* Hide original content on mobile */
  .vet-item > .vet-img,
  .vet-item > p {
    display: none;
  }

  /* Bio content area */
  .vet-item-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1rem;
    background: white;
  }

  .vet-item.expanded .vet-item-bio {
    max-height: fit-content;
    padding: 1rem;
  }

  .vet-item-bio p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
  }

  .vet-item-bio p:last-child {
    margin-bottom: 0;
  }

  /* Hide empty paragraphs */
  .vet-item-bio p:empty {
    display: none;
  }

  /*FOOTER TESTIMONIALS MOBILE STYLES*/

  .section-header {
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .section-subtitle {
    font-size: 1.125rem;
  }

  .testimonial-card {
    width: 100%;
    padding: 0 0.75rem;
  }

  .card-inner {
    padding: 1.5rem;
  }

  .testimonial-content {
    font-size: 1rem;
  }

  .nav-button {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nav-button-prev {
    left: -1rem;
  }

  .nav-button-next {
    right: -1rem;
  }

  .nav-button svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  /*FOOTER MOBILE*/

  .footer-banner {
    background: var(--teal);
    color: white;
    font-weight: bold;
    padding: 20px;
    font-size: 1.15em;
    letter-spacing: 1px;
    text-align: center;
  }

  .footer-banner .container {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
  }

  .footer-banner p {
    margin: 10px auto;
    font-size: 1.25em;
    line-height: 1.4em;
  }

  .footer-banner a {
    display: inline-block;
    background: var(--darkgreen);
    padding: 12px 40px;
    border-radius: 5px;
    text-transform: uppercase;
    margin: 10px auto;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
  }

  .footer-banner a:hover {
    background: white;
    color: var(--darkgreen);
  }

  footer {
    padding: 60px 20px;
    background: var(--lightgray);
    color: var(--darkgray);
  }

  footer .container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }

  .footer-col h3 {
    text-transform: uppercase;
    color: var(--darkgreen);
  }

  .footer-col ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0px;
  }

  .footer-col ul li {
    list-style-type: none;
    margin-bottom: 10px;
  }

  .footer-col li a,
  .footer-col p a {
    border-bottom: 1px solid var(--teal);
    position: relative;
    padding-bottom: 2px;
  }

  .footer-col li a:hover,
  .footer-col p a:hover {
    color: var(--green);
  }

  .footer-col li a:before,
  .footer-col p a:before {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 0;
    background: var(--green);
    height: 1.5px;
    transition: 0.3s;
  }

  .footer-col li a:hover:before,
  .footer-col p a:hover:before {
    width: 100%;
  }

  .footer-col:nth-of-type(2) {
    padding-bottom: 20px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col h3 {
    text-align: center;
  }

  #footer-home-link {
    width: 170px;
    margin-bottom: 20px;
    display: inline-block;
  }

  #footer-home-link img {
    width: 100%;
    height: auto;
  }

  .footer-logos {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
  }

  .footer-logos img {
    max-width: 150px;
    width: 100%;
    height: auto;
    margin: 10px;
  }

  #sub-footer {
    background: var(--darkgreen);
    padding: 20px;
    color: white;
    text-align: center;
    font-size: 0.9em;
  }

  #sub-footer a {
    border-bottom: 1px solid var(--teal);
    font-weight: bold;
  }

  #sub-footer a:hover {
    color: var(--teal);
  }

  .contact-page-flexbox {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;
    /* margin: 30px 0px; */
  }

  .contact-page-map {
    width: 95%;
  }

  .contact-page-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    width: 95%;
    margin-bottom: 20px;
  }

  .contact-page-text {
    display: flex;
    flex-direction: column;
  }

  .contact-page-text h2 {
    color: var(--darkgreen);
    font-size: 30px;
    position: relative;
    line-height: 1;
  }

  /* .contact-page-text h2:after {
    content: "";
    background-color: var(--primary-color);
    width: 172px;
    height: 4px;
    position: absolute;
    top: calc(-1.24vw + 31.65%);
    left: 0%;
  } */

  .contact-page-text h3 {
    color: var(--darkgreen);
    font-size: 18px;
  }

  .contact-page-info {
    display: flex;
    flex-direction: column;
  }

  .contact-page-type {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .contact-page-type:nth-of-type(2) {
    margin-top: 35px;
    margin-bottom: 35px;
  }

  .contact-page-type i {
  }

  .contact-page-icon {
    display: flex;
    justify-content: center;
  }

  .contact-page-icon i {
    font-size: 28px;
    background-color: var(--teal);
    border-radius: 50%;
    padding: 13px;
    color: white;
  }

  .contact-page-type a {
    text-decoration: none;
    color: var(--accent-blue);
    margin-left: 15px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid var(--teal);
    transition: all 0.5s;
    cursor: pointer;
  }

  .contact-page-type a:hover {
    color: var(--red);
    transition: all 0.5s;
  }
}

@media (width <= 600px) {
  .footer-col ul li {
    grid-column: span 2;
  }
}
