:root {
  --accent-color: #0d0d0d;
  --bs-gray-100: #f3f3f3;
  --bs-gray-200: #e7e5e2;
  --bs-primary: #998a73;
  --bs-secondary: #f6f5f2;
  --bs-primary-rgb: 120, 125, 98;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-light: #fff;
  --bs-dark: #000;
}

@media screen and (max-width: 600px) {
  :root {
    --header-height: 100px;
    --header-height-min: 80px;
  }
}

:root {
  --body-font: "Trebuchet", sans-serif;
  --heading-font: "Work Sans", sans-serif;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  color: var(--accent-color);
  margin: 0;
}

.title {
  font-family: var(--heading-font), cursive;
  font-style: normal;
}

ul.inner-list li {
  font-size: 1.2em;
}

strong {
  font-weight: bold;
}

a {
  color: var(--bs-dark);
  text-decoration: none;
  transition: 0.3s color ease-out;
}

a:hover {
  text-decoration: none;
  color: var(--bs-primary);
}

.form-control:focus,
.accordion-button:focus {
  box-shadow: none;
}

.bg-secondary {
  background: var(--bs-secondary) !important;
}

.bg-dark {
  background: var(--bs-dark) !important;
}

.bg-light {
  background: var(--bs-light) !important;
}

.bg-gray-1 {
  background-color: var(--bs-gray-100) !important;
}

.padding-small {
  padding-top: 2em;
  padding-bottom: 2em;
}

.padding-medium {
  padding-top: 4em;
  padding-bottom: 4em;
}

.padding-large {
  padding-top: 7em;
  padding-bottom: 7em;
}

.margin-small {
  margin-top: 3em;
  margin-bottom: 3em;
}

.margin-medium {
  margin-top: 5em;
  margin-bottom: 5em;
}

.margin-large {
  margin-top: 7em;
  margin-bottom: 7em;
}

@media only screen and (max-width: 768px) {

  .margin-small,
  .margin-medium,
  .margin-large {
    margin-top: 1em;
    margin-bottom: 1em;
  }
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-style: normal;
}

.container-fluid {
  max-width: 1540px;
}

.btn.btn-small {
  padding: 0.6em 1.8em;
  font-size: 0.65em;
  border-radius: 50px !important;
}

.btn.btn-medium {
  padding: 0.6em 1.6em;
  font-size: 0.9em;
  letter-spacing: 2px;
  border-radius: 10px !important;
}

.btn.btn-large {
  padding: 2.4em 5.1em;
  font-size: 1.8em;
}

.btn.btn-rounded .btn.btn-rounded::after {
  border-radius: 6px;
}

.btn.btn-pill,
.btn.btn-pill::after {
  border-radius: 2em;
}

.btn.btn-outline-dark,
.btn.btn-outline-light,
.btn.btn-outline-accent {
  background: transparent;
  text-shadow: none;
  box-shadow: none;
  border: 1px solid;
}

.btn.btn-outline-dark:hover::after,
.btn.btn-outline-light:hover::after {
  background-color: transparent;
}

.btn.btn-outline-dark {
  border-color: rgba(0, 0, 0, 1);
  color: var(--bs-dark);
}

.btn.btn-outline-dark:hover {
  background: var(--bs-dark);
  color: var(--bs-light);
}

.btn.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--bs-light);
}

.btn.btn-outline-light:hover {
  background: var(--bs-primary);
  color: var(--bs-light);
  border-color: var(--bs-primary);
}

.btn.btn-outline-gray {
  background: transparent;
  border-color: var(--gray-color-600);
  color: var(--bs-dark);
}

.btn.btn-outline-gray:hover {
  border-color: var(--bs-dark);
  color: var(--bs-dark) !important;
}

.btn.btn-outline-accent {
  background: transparent;
  border-color: var(--accent-color);
  color: var(--bs-dark);
}

.btn.btn-outline-accent:hover {
  border-color: var(--bs-dark);
  color: var(--bs-dark) !important;
}

.btn.btn-full {
  display: block;
  margin: 0.85em 0;
  width: 100%;
  letter-spacing: 0.12em;
}

.btn-rounded-none,
.btn-rounded-none::after {
  border-radius: 0;
}

.btn.btn-normal {
  border: none;
  color: var(--bs-dark);
  text-decoration: underline;
}

.btn.btn-normal:hover {
  text-decoration: none;
}

.btn.btn-accent {
  color: var(--bs-light);
  background-color: var(--accent-color);
  border: none;
}

.btn.btn-accent:hover {
  color: var(--bs-light) !important;
  background-color: var(--bs-primary);
}

.btn.btn-black {
  background-color: var(--bs-dark);
  color: var(--bs-light);
  border: none;
}

.btn.btn-black:hover {
  background-color: var(--bs-primary);
  color: var(--bs-light);
}

.btn.btn-light {
  background-color: var(--bs-light);
  color: var(--bs-dark);
  border: none;
}

.btn.btn-light:hover {
  background-color: var(--bs-primary);
  color: var(--bs-light);
}

.btn.btn-primary {
  background: var(--bs-primary);
  color: var(--bs-light);
  border: none;
}

.btn.btn-primary:hover {
  background-color: var(--bs-dark);
  color: var(--bs-light);
}

.btn-left {
  text-align: left;
  display: block;
}

.btn-center {
  text-align: center;
  display: block;
}

.btn-right {
  text-align: right;
  display: block;
}

.image-zoom-effect {
  overflow: hidden;
}

.image-zoom-effect .image-holder {
  width: 100%;
  height: auto;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-zoom-effect:hover .image-holder {
  transform: scale(0.95);
}

.image-zoom-effect img {
  transform: scale(1);
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.image-zoom-effect:hover img {
  transform: scale(1.1);
}

.link-effect {
  cursor: pointer;
}

.link-effect a {
  position: relative;
  padding: 0;
  overflow: hidden;
  transition: transform 0.5s;
  display: block;
}

.link-effect a::after {
  content: attr(data-after);
  display: inline-block;
  transform: translateY(100%);
  position: absolute;
  left: 0;
  font-size: 1rem;
  text-align: inherit;
  text-transform: uppercase;
  transition: inherit;
}

.link-effect a>span {
  display: inline-block;
  transform: translateY(0%);
  transition: inherit;
}

.link-effect:hover a>span {
  transform: translateY(-100%);
}

.link-effect:hover a::after {
  transform: translateY(0%);
}

.icon-box-effect {
  overflow: hidden;
  cursor: pointer;
}

.icon-box-effect .social-links libutton {
  position: relative;
  bottom: 80px;
  opacity: 0;
  display: inline-block;
  margin: 7px;
  padding: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-color);
}

.icon-box-effect .social-links button:hover {
  background-color: var(--bs-primary);
}

.icon-box-effect .social-links svg {
  color: var(--light-color);
  animation-name: rotate-icon;
}

.icon-box-effect .social-links button:nth-child(1) {
  transition: 1s;
}

.icon-box-effect .social-links button:nth-child(2) {
  transition: 1.2s;
}

.icon-box-effect .social-links button:nth-child(3) {
  transition: 1.5s;
}

.icon-box-effect .social-links button:nth-child(4) {
  transition: 1.8s;
}

.icon-box-effect .social-links button:nth-child(5) {
  transition: 2.4s;
}

.icon-box-effect:hover>.product-card .social-links button {
  bottom: 200px;
  opacity: 1;
}

.image-overlay {
  cursor: pointer;
}

.image-overlay .product-image {
  overflow: hidden;
}

.image-overlay .product-image img {
  transform: translateY(0);
  transition: transform 0.6s ease-in-out;
}

.box-slide {
  left: 0;
  bottom: 0;
  transform: translateY(100%);
  color: var(--bs-dark);
  transition: transform 0.6s ease-in-out;
}

.image-overlay:hover .box-slide {
  transform: translateY(0%);
}

.image-overlay:hover img {
  transform: translateY(-10%);
}

.btn.btn-arrow {
  color: var(--bs-light);
  background-color: var(--bs-primary);
  border-radius: 0;
  position: relative;
}

.btn.btn-arrow.btn-bg-light {
  color: var(--bs-dark);
  background-color: var(--bs-light);
}

.btn.btn-arrow.outline-dark {
  color: var(--bs-dark);
  background-color: transparent;
  border: 1px solid var(--bs-dark);
}

.btn.btn-arrow.btn-normal {
  color: var(--bs-dark);
  background-color: transparent;
  border: none;
  text-decoration: underline;
}

.btn.btn-arrow span {
  display: inline-block;
  transition: all 300ms ease-out;
  will-change: transform;
}

.btn.btn-arrow:hover span {
  transform: translate3d(-7px, 0, 0);
}

.btn.btn-arrow svg {
  position: absolute;
  top: 32px;
  right: 21px;
  transform: translateY(-50%);
  transition: all 300ms ease-out;
  will-change: right, opacity;
}

.btn.btn-arrow:hover svg {
  opacity: 0;
  right: 0;
}

.btn svg.icon-arrow {
  width: 25px;
  height: 25px;
}

.site-header {
  position: fixed;
  width: 100%;
  z-index: 9999;
  transition: background 0.3s ease-out;
  background-color: transparent;
}

.navbar-icon {
  background-color: transparent;
  border: none;
  padding: 0;
}

.navbar {
  height: 80px;
  font-family: var(--heading-font);
}

.navbar.scrolled {
  background: white;
}

.navbar-nav .nav-item a.nav-link {
  color: black;
}

.navbar-nav .nav-item a.nav-link.active,
.navbar-nav .nav-item a.nav-link:focus,
.navbar-nav .nav-item a.nav-link:hover {
  color: var(--bs-primary);
}


.nav-link,
.dropdown-toggle {
  font-weight: normal;
}

.navbar img {
  height: 70px;
  width: auto;
}

@media (min-width: 992px) {
  .navbar {
    padding-right: 10%;
  }

  .navbar-brand {
    padding-left: 15%;
  }

  .navbar-nav .nav-item.bg-image a.nav-link,
  .navbar-nav .nav-item.bg-video a.nav-link {
    color: white;
  }

  .navbar.scrolled .nav-item a.nav-link {
    color: black;
  }
}

@media (max-width: 992px) {
  .navbar img {
    height: 65px;
    width: auto;
    padding-left: 10%;
  }
}

.dropdown-item:focus,
.dropdown-item:hover {
  background-color: var(--bs-secondary);
}

.navbar-toggler {
  box-shadow: none;
  outline: none;
  border: none;
  text-align: left;
}

#header-nav .navbar-toggler:focus {
  box-shadow: none;
  outline: none;
  border: none;
}


#header-nav .offcanvas.show {
  z-index: 9999;
  background-color: var(--bs-light);
}

#header-nav .offcanvas-end {
  width: 500px;
}

.offcanvas-header {
  padding-left: 0;
}

.offcanvas.show .offcanvas-header .navbar-brand {
  padding-left: -50px;
}

.site-header .user-items svg {
  cursor: pointer;
}

@media only screen and (max-width: 991px) {
  #navbar .user-items {
    display: none;
  }

  #header-nav .offcanvas {
    font-size: 1.2em;
  }
}

#brand-collection {
  padding: 20px 0;
  overflow: hidden;
  margin: 40px 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  animation: slide 20s linear infinite;
  white-space: nowrap;
}

.brand-wrapper img {
  width: 100px;
  height: auto;
  margin-right: 50px;
}

.brand-wrapper:hover {
  animation-play-state: paused;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-900px);
  }
}

@media (max-width: 600px) {
  .brand-wrapper img {
    width: 80px;
    margin-right: 30px;
  }

  .brand-wrapper {
    animation: slide 30s linear infinite;
  }

  @keyframes slide {
    100% {
      transform: translateX(-660px);
    }
  }
}


.container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-size: 3.0em;
  margin: 20px 0;
}

.help-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 40px 0;
}

.help-card {
  background-color: transparent;
  padding: 20px;
  border-radius: 0;
  width: 30%;
  box-shadow: none;
  border: none;
  text-align: center;
}

.help-card img {
  max-width: 200px;
  margin-bottom: 10px;
  background-color: transparent;
}

.help-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.help-card p {
  font-size: 1em;
  margin-bottom: 20px;
}

.help-card a {
  text-decoration: none;
  color: #998a73;
}

.help-card a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .help-card {
    width: 45%;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .help-card {
    width: 100%;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 1.8em;
  }

  .help-card h3 {
    font-size: 1.2em;
  }

  .help-card p {
    font-size: 0.9em;
  }

  .help-card img {
    max-width: 150px;
    /* Reduce image size on mobile */
  }
}

/* Container for the photo album */
.container-photo-album {
  width: 100%;
  text-align: center;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center content horizontally */
}

/* Content wrapper */
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 20px;
  /* Add gap between elements */
  align-items: center;
}

/* Text content on top */
.text-content {
  width: 100%;
  background-color: transparent;
  padding: 20px;
  text-align: center;
}

/* Smooth scrolling photo gallery for desktop */
.photo-gallery {
  width: 100%;
  overflow-x: auto;
  /* Enable horizontal scrolling */
  display: flex;
  justify-content: center;
  /* Center the cards horizontally */
  padding-left: 20px;
  scroll-snap-type: x mandatory;
  /* Enable scroll snap */
  scroll-behavior: smooth;
  /* Smooth scrolling */
  gap: 20px;
  /* Space between cards */
}

/* Custom Scrollbar Styling */
.photo-gallery::-webkit-scrollbar {
  height: 6px;
}

.photo-gallery::-webkit-scrollbar-track {
  background: transparent;
}

.photo-gallery::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 10px;
}

.photo-gallery::-webkit-scrollbar-thumb:hover {
  background-color: #f0f0f0;
}

.cards {
  display: flex;
  flex-wrap: nowrap;
  /* Keep cards in a single row for desktop */
  justify-content: center;
  /* Center the cards */
  gap: 20px;
  /* Space between cards */
  padding: 0;
}

/* Individual card styling */
.card {
  position: relative;
  flex: 0 0 300px;
  /* Each card takes up 300px of width */
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
  scroll-snap-align: center;
  /* Cards snap into center */
  border: none;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  border: none;
}

/* Card text styling */
.card-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  text-align: start;
}

.card-text h2 {
  margin-bottom: 5px;
  /* Adjust this value to reduce spacing */
}

.card-text p {
  margin-top: 0;
  /* Remove any margin on the top of the <p> */
}

/* Button below gallery */
.text-content .btn {
  margin-top: 20px;
  display: inline-block;
}

/* Responsive styling */
@media (max-width: 1200px) {
  .content-wrapper {
    flex-direction: column;
  }

  .text-content {
    width: 100%;
    margin-bottom: 20px;
  }

  .photo-gallery {
    width: 100%;
    gap: 15px;
    /* Adjust gap on smaller screens */
  }
}

/* Mobile screens: Vertically align cards */
@media (max-width: 768px) {
  .photo-gallery {
    flex-direction: column;
    /* Stack cards vertically */
    align-items: center;
    /* Center the cards vertically */
    gap: 20px;
    /* Ensure spacing between stacked cards */
    overflow-x: hidden;
    /* Hide horizontal scroll on mobile */
  }

  .cards {
    flex-direction: column;
    /* Ensure cards are in a column */
  }

  .card {
    flex: 0 0 100%;
    /* Full width on mobile */
    max-width: 300px;
    /* Max width of 300px */
    height: auto;
    /* Let the height adjust to content */
    margin-bottom: 20px;
    /* Space between stacked cards */
  }

  .card img {
    height: auto;
    /* Adjust height to fit the new card size */
  }

  .card-text {
    bottom: 10px;
    /* Adjust card text position */
    left: 10px;
  }

  .btn {
    margin-top: 20px;
    align-self: center;
  }
}

/* Small mobile screens: Further reduce size */
@media (max-width: 480px) {
  .card {
    max-width: 90%;
    /* Cards take up 90% of the screen */
    margin-bottom: 15px;
    /* Smaller space between cards */
  }

  .photo-gallery {
    gap: 10px;
    /* Reduce gap between cards */
  }

  .card-text {
    font-size: 14px;
    /* Slightly smaller text */
  }
}

.video-container {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Fullscreen video */
video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  /* Ensure the video covers the entire background */
}

.video-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding-top: 15em;
}

.video-content p {
  font-size: 2.5em;
}

.video-content h3 {
  font-size: 8em;
}

.video-content .ghost-button {
  width: 230px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent black */
  z-index: 0;
}

.image-container {
  position: relative;
  height: 80vh;
  width: 100%;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  /* Ensure the image covers the entire background */
}

.image-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  padding-top: 15em;
}

.image-content p {
  font-size: 2.5em;
}

.image-content h3 {
  font-size: 4.5em;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent black */
  z-index: 0;
}

.flex-container {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Space between text and image */
}

/* Text Box */
.text-box {
  flex: 1;
  /* Make text take up more space */
  text-align: justify;
}

/* Image Box */
.image-box {
  flex: 1;
  /* Allow the image to adjust based on space */
  max-width: 50%;
  /* Limit the maximum width of the image */
}

/* Ensure images scale dynamically */
.image-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Responsive Design for smaller screens */
@media (max-width: 1200px) {
  .flex-container {
    flex-direction: column;
    /* Stack vertically on small screens */
  }

  .video-content {
    padding-top: 5em;
  }

  .video-content p {
    font-size: 1.5em;
  }

  .video-content h3 {
    font-size: 2.5em;
  }

  .image-box {
    max-width: 100%;
    /* Image takes full width on small screens */
  }
}

.counter-container {
  width: 80%;
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Two columns */
  column-gap: 40px;
  align-items: center;
  margin: 0 auto;
  /* Centers horizontally */
}

.counter-container .text-column {
  text-align: center;
}

.counter {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.counter-box {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.counter-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.counter-content {
  display: flex;
  align-items: center;
}

.counter-box img {
  width: 80px;
  margin-right: 20px;
}

.counter-text h2 {
  font-size: 3rem;
  color: #333;
  margin: 0;
}

.counter-text p {
  font-size: 1rem;
  color: #555;
  margin: 0;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .counter-container {
    grid-template-columns: 1fr;
    /* Stack text and counter on top of each other */
  }

  .counter {
    grid-template-columns: 1fr;
  }

  .counter-box {
    text-align: center;
    flex-direction: column;
  }

  .counter-box img {
    margin-bottom: 15px;
  }

  .counter-text h2 {
    font-size: 2.5rem;
  }

  .image-container {
    height: 50vh;
  }
}

.filter-container {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  background-color: white;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.filter {
  padding: 10px;
  border: none;
  border-radius: 15px;
  background-color: #fff;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  width: 150px;
  font-size: 1em;
}

.filter:hover {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.filter option:hover {
  background: white;
}


.reset-button,
.search-button {
  display: inline-block;
  background-color: #fff;
  border: none;
  border-radius: 15px;
  padding: 5px 10px;
  color: #998a73;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.3s;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.reset-button:hover,
.search-button:hover {
  background-color: #998a73;
  color: white;
  transform: translateY(-2px);
}

.search-button {
  margin-left: 20px;
  margin-right: 20px;
}

.search-input {
  padding: 5px 10px;
  border: 1px solid #998a73;
  border-radius: 15px;
  width: 200px;
  font-size: 1em;
}


/* Media Queries for Responsiveness */
@media (max-width: 600px) {
  .filter-container {
    flex-direction: column;
    /* Stack elements vertically */
    align-items: stretch;
    /* Make children stretch to full width */
    width: 80%;
    /* Fixed width for the input */
  }

  .search-input {
    width: 100%;
  }

  .filter,
  .reset-button,
  .search-button {
    width: 100%;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 5px;
    margin-bottom: 5px;
  }
}

.dog-card-container {
  display: flex;
  gap: 30px;
  padding: 20px;
  border-radius: 15px;
  width: 100%;
  max-width: 1500px;
  flex-wrap: wrap;
  justify-content: center;
}

.dog-card {
  background-color: #fff;
  border-radius: 30px;
  width: 450px;
  box-shadow: none;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
  z-index: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 550px;
  border: 1px solid #998a73;
  line-height: 1.2;
}

.dog-card-link {
  text-decoration: none;
  color: inherit;
}

.dog-card-link .dog-card {
  cursor: pointer;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 20px;
  font-size: 1em;
  justify-content: space-between;
}

.item.left {
  flex: 1 1 auto;
  text-align: left;
  color: black;
}

.item.right {
  flex: 1 1 auto;
  text-align: right;
  color: black;
  white-space: nowrap;
}

.dog-card:hover {
  transform: scale(1.05);
  background-color: #ddd8d1;
}

.dog-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 10px;
}

.dog-card h3 {
  font-size: 2em;
  margin: 0;
  color: #998a73;
}

.dog-card p {
  font-size: 1em;
  color: #666;
}

@media screen and (max-width: 768px) {
  .dog-card-container {
    gap: 15px;
    padding: 10px;
  }

  .dog-card {
    width: 400px;
    height: auto;
    padding: 15px;
  }

  .dog-card:hover {
    transform: none;
    background-color: white;
  }

  .dog-card img {
    border-radius: 15px;
  }

  .dog-card h3 {
    font-size: 1.5em;
  }

  .dog-card p {
    font-size: 0.9em;
  }
}

.numbers {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  color: #000;
  margin: 0 auto;
  text-align: center;
  padding-top: 0;
}

.numbers-background {
  width: 100%;
  /* Ensure the image takes 100% of the page width */
  height: 600px;
}

.facts-container {
  display: flex;
  justify-content: center;
  gap: 8vmin;
  position: relative;
  bottom: 10vmin;
  /* Adjust to overlap boxes */
  width: 100%;
  /* Ensure fact boxes take the full width of the page */
  padding: 0 5vw;
  /* Add some padding on the sides */
}

.fact-box {
  background-color: #2a2e3a;
  color: #fff;
  padding: 3vmin;
  border-radius: 20px;
  /* Rounded corners */
  width: 35vmin;
  /* Square width */
  height: 35vmin;
  /* Square height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  /* Add shadow for depth */
  z-index: 2;
  /* Ensure boxes are above the image */
}

.fact-box h3 {
  font-size: 3vw;
  font-family: "Brush Script MT", cursive;
}

.fact-box p {
  font-size: 2vw;
}

.background-box {
  background-color: #f0ede9;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px;
  border-radius: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 120px;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: -1;
}

.team-section {
  padding: 50px 10px;
  text-align: center;
  position: relative;
  z-index: 1;
  align-items: center;
}

.team-section h1 {
  font-size: 4.5rem;
  margin-bottom: 30px;
  color: #998a73;
}


/* Team Grid */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 100px;
}

/* Team Card */
.team-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
  padding: 30px;
  margin: 250px 20px 50px;
  /* Larger margin for spacing */
  text-align: center;
  width: calc(50% - 40px);
  /* Two cards per row */
  position: relative;
  transition: transform 0.3s ease-in-out;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: -175px;
  left: 50%;
  transform: translateX(-50%);
}

.team-card h2 {
  font-size: 1.8rem;
  color: #998a73;
  margin: 190px 0 10px;
}

.team-card p {
  font-size: 1.3rem;
  color: #666;
  margin: 10px 0 15px;
}

.hlgrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.hlcard {
  background-color: var(--bs-primary-rgb);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
  /* Increased padding to prevent overlapping */
  margin: 100px 10px;
  width: 30%;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease-in-out;
  border: 2px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center content horizontally */
}

.hlcard img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-bottom: 10px;
  /* Added space below the image */
}

.hlcard h2 {
  font-size: 1.8rem;
  color: #000;
  margin-top: 10px;
  /* Reduced the top margin */
}

.hlcard p {
  font-size: 1rem;
  color: #666;
  margin: 10px 0;
  /* Increased bottom margin to space out the text */
  text-align: justify;
}

#donate-button-container {
  margin-bottom: 20px;
  /* Margin between paragraph and donate button */
  text-align: center;
  width: 100%;
  /* Ensure the container doesn't restrict button width */
}

#donate-button {
  width: 150px;
  height: auto;
  margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hlgrid {
    justify-content: space-between;
  }

  .hlcard {
    width: 45%;
    /* Adjust width for medium screens (tablets) */
    margin-bottom: 50px;
    /* Reduce spacing between cards */
  }

  .hlcard span {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hlcard {
    width: 100%;
    /* Take full width on small screens (mobile) */
    margin: 20px auto;
    /* Center cards */
  }

  .hlcard h2 {
    font-size: 1.8rem;
    margin: 20px 0 10px;
  }

  .hlcard img {
    width: 80px;
    height: 80px;
  }

  .hlcard p {
    font-size: 1rem;
    margin: 10px 0 10px;
  }
}

.about-me {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .team-card {
    width: 100%;
    /* Full width on smaller screens */
    margin: 180px 10px 40px;
    /* Adjust margin for smaller screens */
  }

  .team-card img {
    width: 250px;
    /* Smaller image for mobile */
    height: 250px;
    top: -125px;
    /* Adjusted position */
  }

  .team-card h2 {
    margin-top: 150px;
    /* Adjust to image size */
    font-size: 1.6rem;
  }

  .background-box {
    padding: 40px 10px;
    /* Reduce padding for smaller screens */
  }

  .team-section h1 {
    font-size: 2rem;
    /* Smaller heading for mobile */
  }

  .team-grid {
    margin: 0 auto;
  }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
  .team-grid {
    margin: 0 30px;
    /* Reduce margin for tablets */
  }

  .team-card {
    width: calc(100% - 60px);
    /* Full width on tablets */
    margin: 180px 30px 40px;
    /* Adjust margin for tablet screens */
  }

  .team-card img {
    width: 300px;
    /* Adjust image size for tablet */
    height: 300px;
    top: -150px;
  }

  .team-card h2 {
    margin-top: 160px;
  }

  .team-grid {
    margin: 0 auto;
  }
}

.typewriter::after {
  content: "|";
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {

  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.down-arrow {
  position: absolute;
  bottom: 100px;
  width: 30px;
  height: 30px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: moveDown 2s infinite ease-in-out;
  cursor: pointer;
}

@keyframes moveDown {
  0% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(20px) rotate(45deg);
  }

  100% {
    transform: translateY(0) rotate(45deg);
  }
}

.ghost-button {
  padding: 0.6em 1.6em;
  font-size: 0.9em;
  letter-spacing: 2px;
  background-color: transparent;
  color: #998a73;
  border: 2px solid #998a73;
  border-radius: 5px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s;
  position: relative;
  width: 200px;
  /* Set a fixed width for uniformity */
  text-align: center;
  /* Center the text */
  display: inline-flex;
  /* Ensure proper centering */
  justify-content: center;
  /* Center the text horizontally */
  align-items: center;
  /* Center the text vertically */
  margin: 1em;
}

.ghost-button:hover {
  background-color: #998a73;
  color: #fff;
  /* Adjust hover text color */
}

@media (max-width: 768px) {
  .ghost-button {
    width: 140px;
    padding: 0.2em 0.2em;
    /* Adjust padding for mobile */
    font-size: 1em;
    /* Slightly larger font for better readability */
    letter-spacing: 1px;
    /* Reduce letter spacing for better readability */
    margin: 0.5em;
  }

  .down-arrow {
    bottom: 200px;
  }
}

.wrapper {
  min-height: 100vh;
  /* Full height of the viewport */
  display: flex;
  flex-direction: column;
  /* Stacks the header, content, and footer */
}

.footer {
  background-color: #ddd8d1;
  color: #000;
  padding: 20px 0;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 auto;
  width: 100%;
}

.footer-section {
  flex: 1;
  padding: 0 10px;
  text-align: center;
  /* Center text by default */
}

.footer-image {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.footer-image img {
  max-width: 100%;
  height: auto;
  width: 190px;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer p {
  margin-top: 15px;
  text-align: center;
}

.footer-contact {
  text-align: right;
  padding-left: 20px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 10px 0;
}

.footer .social-section {
  padding-top: 20px;
}


.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
}

.footer-social-links a,
.links a {
  color: #000;
  text-decoration: none;
}

.footer-social-links a:hover,
.links a:hover {
  text-decoration: underline;
  /* Underline on hover */
}

.footer-social-links a i {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: cover;
}

.footer-links {
  padding-top: 50px;
}

/* Social media icons */
.tiktok {
  background-image: url("https://cdn-icons-png.flaticon.com/512/3046/3046126.png");
}

.instagram {
  background-image: url("https://cdn-icons-png.flaticon.com/512/1384/1384063.png");
}

.facebook {
  background-image: url("https://cdn-icons-png.flaticon.com/512/733/733547.png");
}

/* Mobile Styles */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    /* Stack sections vertically */
    align-items: center;
    /* Center-align sections */
    text-align: center;
    /* Center text */
  }

  .footer-section {
    padding: 10px 0;
    /* Increase padding for better spacing */
    width: 100%;
    /* Ensure sections take full width */
  }

  .footer-contact {
    text-align: center;
    /* Center contact information */
    padding-left: 0;
    /* Remove left padding */
    padding-top: 20px;
    /* Add top padding */
  }

  .footer-social-links {
    flex-direction: row;
    /* Keep social links in a row */
    justify-content: center;
  }

  .footer p {
    margin-top: 10px;
    /* Reduce margin for paragraphs */
  }

  .footer-image {
    flex-direction: column;
    /* Stack logo and contact vertically */
    align-items: center;
    /* Center-align content */
  }

  .footer-image img {
    width: 30%;
    /* Adjust image width for mobile */
    height: auto;
    /* Maintain aspect ratio */
  }

  .footer-links {
    padding-top: 20px;
    /* Adjust padding */
  }

  .footer-social-links a,
  .links a {
    font-size: 14px;
    /* Reduce font size for links */
  }
}

.qa-container {
  max-width: 700px;
  margin: 0 auto;
}

.qa-container h1 {
  font-size: 3em;
  text-align: center;
}

.qa-item {
  background-color: #fff;
  border-radius: 10px;
  margin: 15px 0;
  padding: 20px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  /* No border by default */
  border: 1px solid #998a73;
}

.qa-item.active {
  /* Darker color for active border */
  background-color: white;
  /* White background when active */
}

.qa-text {
  font-size: 1.2em;
  font-weight: bold;
  color: #998a73;
  /* Use darker color for the question text */
  margin: 0;
  /* No margin */
  padding-right: 60px;
  /* Space for the icon */
  text-align: left;
}

.qa-icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 20px;
  top: 20px;
  /* Align icon vertically centered with text */
}

.qa-body {
  display: none;
  color: #555;
  font-size: 0.95em;
  padding-top: 10px;
  /* Padding above body text */
  border-top: 1px solid #ccc;
  /* Separator for the body text */
  margin-top: 10px;
  /* Space between question and answer */
  text-align: left;
}

.qa-item.active .qa-body {
  display: block;
}

.qa-icon img {
  width: 30px;
  /* Adjust size as needed */
  height: 30px;
  /* Adjust size as needed */
}

/* Remove underline from all elements */
.qa-text,
.qa-body {
  text-decoration: none;
  /* No underline */
}

@media (max-width: 768px) {
  .image-content {
    font-size: 0.8em;
    height: auto;
    bottom: 0px;
  }

  .image-content h3 {
    font-size: 2.4em;
  }

  .qa-text {
    font-size: 1em;
  }
}

@media (max-width: 400px) {
  .image-content {
    font-size: 0.8em;
    height: auto;
    bottom: 0px;
  }

  .image-content h3 {
    font-size: 2em;
  }

  .qa-text {
    font-size: 1em;
  }
}

.foster-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 150px;
  max-width: 1200px;
}

.foster-text-section {
  flex: 1;
  margin-left: 20px;
  margin-right: 20px;
}

.foster-text-section p {
  font-size: 18px;
  color: #4b4b4b;
  line-height: 1.5;
}

.foster-image-section {
  flex: 1;
  text-align: center;
  position: relative;
  overflow: visible;
}

.foster-image-section img {
  height: 500px;
  border-radius: 30px;
}

.foster-1 {
  transform: translateY(-120px);
}

.foster-2 {
  transform: translateY(-180px);
}

.foster-3 {
  transform: translateY(-80px);
}

/* Responsive view for mobile devices (below 768px) */
@media (max-width: 768px) {
  .foster-container {
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
    /* Reducing margin for mobile */
  }

  .foster-image-section {
    order: -1;
    /* Ensures the image comes before the text */
    transform: translateY(70px);
  }

  .foster-text-section {
    margin: 0 10px;
  }

  .foster-image-section img {
    height: 400px;
    border-radius: 30px;
  }
}

/* Optional improvement: Adjust text size for smaller screens */
@media (max-width: 480px) {
  .container {
    width: 100%;
  }

  .foster-text-section p {
    font-size: 16px;
    /* Slightly smaller text for better readability */
    line-height: 1.4;
  }

  .foster-container {
    margin-top: 100px;
    width: 100%;
  }

  .foster-image-section img {
    border-radius: 20px;
    /* Tighter border radius for smaller screens */
  }

  .foster-1 {
    transform: translateY(-70px);
  }

  .foster-2 {
    transform: translateY(-70px);
  }

  .foster-3 {
    transform: translateY(-70px);
  }
}

.foster-form-container {
  max-width: 1000px;
  width: 100%;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fosterFadeIn 0.5s ease-out;
}

@keyframes fosterFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.foster-form-container h2 {
  text-align: center;
  font-size: 4em;
  color: #998a73;
}

.foster-form-container p {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.foster-form-container label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #998a73;
  text-align: left;
}

.foster-form-container input[type="text"],
.foster-form-container input[type="email"],
.foster-form-container input[type="tel"],
.foster-form-container input[type="date"],
.foster-form-container input[type="number"],
.foster-form-container select,
.foster-form-container textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #998a73;
  border-radius: 4px;
  box-sizing: border-box;
}

.foster-form-container textarea {
  resize: vertical;
  height: 60px;
}

.foster-form-container button {
  background-color: #998a73;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.foster-form-container button:hover {
  background-color: #8a7c66;
}

.error {
  display: block;
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
}

.form-group {
  margin-bottom: 15px;
  /* Add some spacing between fields */
}

.faq-which-dog-container {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  padding-top: 40px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.faq-which-dog-text-content {
  flex: 1;
  /* Take remaining space */
  margin-right: 20px;
  /* Space between text and image */
}

.faq-which-dog-text-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.dot {
  margin-right: 10px;
  color: #998a73;
}

.faq-which-dog-link-container {
  display: flex;
  align-items: center;
}

.faq-which-dog-link-container span {
  font-size: 1.2rem;
  display: inline;
}

.faq-which-dog-link-container a {
  color: #998a73;
  font-weight: bold;
  margin-left: 0.25em;
  text-decoration: none;
}

.trainer-image {
  margin-left: auto;
  /* Pushes the image to the far right */
  max-width: 200px;
  /* Adjust size as needed */
  height: auto;
}

@media (max-width: 768px) {
  .faq-which-dog-link-container {
    flex-direction: column;
  }

  .faq-which-dog-text-content {
    margin-right: 0;
  }

  .trainer-image {
    margin: 20px auto 0;
  }

  .foster-form-container {
    width: 95%;
  }

  .foster-form-container h2 {
    font-size: 2em;
  }

  .foster-form-container p {
    font-size: 1em;
  }

}

.faq-arrival-container {
  max-width: 1200px;
  margin: auto;
  margin-top: 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.faq-arrival-container strong {
  color: #998a73;
}

.faq-title {
  font-size: 4em;
  text-align: center;
}

.center-image {
  display: block;
  margin: 20px auto;
  /* Centers the image horizontally */
  max-width: 100%;
  /* Responsive sizing */
  height: auto;
}

.faq-process-description {
  font-size: 1.6rem;
  line-height: 1.3em;
  color: black;
  margin-bottom: 50px;
  text-align: center;
  width: 95%;
}

/* Steps Container */
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1000px;
  margin-bottom: 50px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background-color: #fff;
  border-radius: 50%;
  color: #998a73;
  font-weight: bold;
  font-size: 2rem;
  transition: background-color 0.3s, transform 0.3s;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step.active,
.step:hover {
  background-color: #998a73;
  color: #fff;
  transform: scale(1.15);
}

.line {
  flex-grow: 1;
  height: 5px;
  background-color: #ddd8d1;
  transition: background-color 0.3s;
}

.line.active {
  background-color: #998a73;
}

/* Step Details */
.details-container {
  width: 90%;
  max-width: 1200px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding: 50px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  flex-direction: row;
  align-items: center;
  margin-bottom: 50px;
  text-align: justify;
}

.details-container.active {
  display: flex;
}

.details-container h2 {
  font-size: 2.5rem;
  color: #998a73;
  margin-bottom: 20px;
  max-width: 400px;
}

.details-container p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-right: 20px;
}

.details-container img {
  width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  margin-left: auto;
}

.details-container div {
  width: 50%;
}

@media (max-width: 768px) {
  .faq-process-description {
    font-size: 1.4em;
  }

  .steps-container {
    align-items: center;
  }

  .step {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .line {
    width: 5px;
  }

  .details-container {
    flex-direction: column;
    padding: 30px;
  }

  .details-container h2 {
    font-size: 2rem;
    text-align: center;
  }

  .details-container p {
    font-size: 1.1rem;
    text-align: justify;
    margin-right: 0;
    max-width: 100%;
  }

  .details-container li {
    text-align: left;
  }

  .details-container img {
    width: 100%;
    margin: 20px 0 0;
  }

  .details-container div {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .step {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .details-container {
    padding: 20px;
  }

  .details-container h2 {
    font-size: 1.8rem;
  }

  .details-container p {
    font-size: 1rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .faq-title {
    font-size: 3em;
  }
}

.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  height: 750px;
  box-sizing: border-box;
}

.carousel {
  display: flex;
  gap: 50px;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-card {
  background-color: #fff;
  border-radius: 20px;
  width: 400px;
  box-shadow: none;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.8;
  z-index: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 550px;
  border: 1px solid #998a73;
  line-height: 1.2;
}

.carousel-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 15px;
}

.carousel-card-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #998a73;
  margin: 10px 0;
}

.carousel-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 10px;
  font-size: 1em;
  justify-content: space-between;
  visibility: hidden;
  min-height: 60px;
}

.carousel-card.active {
  transform: scale(1.2);
  opacity: 1;
  z-index: 1;
  margin: 0 30px;
  height: auto;
}

.carousel-card.active .carousel-card-info {
  visibility: visible;
}

.carousel-card.active img {
  margin-bottom: 0px;
}

.carousel-card:not(.active) .carousel-card-title {
  margin-top: auto;
  margin-bottom: auto;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.6);
  color: black;
  border: none;
  padding: 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel-button.left {
  left: 10px;
}

.carousel-button.right {
  right: 10px;
}

@media screen and (max-width: 480px) {
  .carousel-card {
    width: 260px;
    height: 360px;
    padding: 10px;
  }

  .carousel-card img {
    height: 250px;
  }

  .carousel-card-info {
    font-size: 0.7rem;
    padding-top: 5px;
    min-height: 30px;
  }

  .carousel-card-title {
    font-size: 1.4rem;
    font-weight: bold;
  }

  .carousel-card.active {
    margin: 0 25px;
  }

  .carousel-container {
    height: 450px;
  }

  .carousel {
    gap: 50px;
  }
}

.happy-ending-section {
  padding: 50px 10px;
  text-align: center;
  position: relative;
  z-index: 1;
  align-items: center;
}

.happy-ending-section h1 {
  font-size: 4.5rem;
  margin-bottom: 30px;
  color: #998a73;
}

.happy-ending-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  padding: 0 20px;
}

.happy-ending-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.30);
  padding: 30px;
  margin: 200px 10px 50px;
  text-align: center;
  width: calc(33.33% - 40px);
  position: relative;
  transition: transform 0.3s ease-in-out;
}

.happy-ending-card img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}

.happy-ending-card h2 {
  font-size: 1.8rem;
  color: #998a73;
  margin: 170px 0 10px;
}

.happy-ending-card p {
  font-size: 1.3rem;
  color: #666;
  margin: 10px 0 15px;
}

.happy-ending-card:hover {
  transform: translateY(-10px);
}

.happy-ending-text {
  display: flex;
  /* Use flexbox for better control */
  align-items: flex-start;
  /* Align icon to the top */
  gap: 15px;
  /* Space between icon and text */
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
  text-align: justify;
}

.happy-ending-text i {
  flex-shrink: 0;
  font-size: 36px;
  color: #666;
}

.happy-ending-text-content {
  flex-grow: 1;
  margin: 0;
}

@media (max-width: 768px) {
  .happy-ending-grid {
    flex-direction: column;
    /* Stack cards vertically */
    gap: 20px;
    /* Reduce gap between cards */
  }

  .happy-ending-card {
    width: 100%;
    margin: 100px auto 20px;
    padding: 20px;
  }

  .happy-ending-card img {
    width: 200px;
    /* Smaller circular images */
    height: 200px;
    top: -110px;
    /* Adjusted position for the smaller image */
  }

  .happy-ending-card h2 {
    font-size: 1.5rem;
    /* Slightly smaller heading */
    margin: 100px 0 10px;
    /* Adjust spacing from the image */
  }

  .happy-ending-card p {
    font-size: 1rem;
    /* Slightly smaller text */
    margin: 10px 0 10px;
  }

  .happy-ending-text {
    font-size: 0.9rem;
    /* Reduced text size for mobile */
    line-height: 1.4;
    gap: 10px;
    /* Adjust gap between the quote icon and text */
  }
}

/* Extra small screens for phones (max width 480px) */
@media (max-width: 480px) {
  .happy-ending-grid {
    padding-top: 20px;
  }

  .happy-ending-card img {
    width: 200px;
    height: 200px;
    top: -110px;
  }

  .happy-ending-card h2 {
    font-size: 1.6rem;
    margin: 80px 0 10px;
  }

  .happy-ending-text {
    font-size: 1.2rem;
    line-height: 1.3;
    gap: 8px;
  }

  .happy-ending-card p {
    font-size: 1.1rem;
  }
}

.help-herz .content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 1200px;
  /* Increased max-width for more space */
  width: 100%;
  text-align: left;
  margin-top: 1rem;
}

.help-herz .text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 60%;
  /* Adjusts the text area width */
}

.help-herz .content img {
  height: auto;
  /* Ens	ures the image stretches to match the text height */
  width: 32%;
  margin-left: 20px;
}

.help-herz p {
  margin-bottom: 1.5rem;
}

.help-herz .highlight {
  font-weight: bold;
  color: #998a73;
  /* Highlight color */
}

/* Styling for the photo section */
.help-herz .photo-gallery {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin-top: 1rem;
  /* Reduced space between content and photos */
  padding: 0 20px;
  padding-top: 50px;
}

.herz-button {
  max-width: 80%;
  margin: 0 auto;
  /* Centers the button horizontally */
  text-align: center;
  /* Ensures text alignment stays centered */
}

.help-herz .photo-gallery img {
  width: 32%;
  /* Ensures the photos are evenly spaced */
  height: auto;
  border-radius: 8px;
  /* Optional: adds rounded corners to the images */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Optional: adds shadow to the images */
}

/* Mobile adjustments only */
@media (max-width: 600px) {
  .help-herz .content {
    flex-direction: column;
    /* Stack text and image vertically */
    align-items: flex-start;
    max-width: 100%;
    padding: 0 1rem;
    /* Add padding for smaller screens */
  }

  .help-herz .text {
    width: 100%;
    /* Take full width on smaller screens */
  }

  .help-herz .content img {
    width: 100%;
    /* Image stretches to full width */
    height: auto;
    margin-left: 0;
    /* Remove margin for better centering */
    margin-top: 1rem;
    /* Add spacing below text */
  }

  .help-herz .photo-gallery {
    flex-direction: column;
    /* Stack images vertically */
    align-items: center;
    /* Center align images */
    padding: 0 1rem;
    /* Add padding for small screens */
  }

  .help-herz .photo-gallery img {
    width: 90%;
    /* Reduce image size for better spacing */
    max-width: 400px;
    /* Optional: Limit maximum size */
    margin-bottom: 1rem;
    /* Add spacing between stacked images */
  }
}

.help-spenden p {
  line-height: 1.6;
  text-align: center;
}

.help-spenden .section-title {
  line-height: 1.6;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.help-spenden .section {
  margin-bottom: 20px;
}

.help-spenden .donation-details {
  margin-top: 20px;
}

.help-spenden .donation-info p {
  margin: 10px 0;
}


.help-patenschaften .text-box {
  max-width: 40%;
  margin: auto;
}

.sponsorship-type p {
  width: 50%;
  line-height: 1.6;
  font-size: 1.5rem;
  margin: auto;
}

.sponsorship-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 80%;
}

.sponsorship-card {
  border-radius: 10px;
  padding: 10px;
  margin: 30px 20px 50px;
  width: calc(50% - 40px);
  position: relative;
  text-align: justify;
  transition: transform 0.3s ease-in-out;


  display: flex;
  /* Use flexbox for better control */
  align-items: flex-start;
  /* Align icon to the top */
  gap: 15px;
  /* Space between icon and text */
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.sponsorship-card h2 {
  font-size: 1.8rem;
  color: #998a73;
  margin: 0;
}

.sponsorship-card p {
  font-size: 1rem;
  color: #666;
  margin: 10px 0 15px;
}

.sponsorship-card .image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #998a73;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sponsorship-card .image-wrapper img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.sponsorship-card .image-wrapper .dog {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .sponsorship-type p {
    width: 50%;
  }

  .sponsorship-grid {
    justify-content: left;
  }

  .sponsorship-card {
    width: calc(50% - 40px);
  }

}

@media (max-width: 480px) {
  .qa-container {
    width: 90%;
  }

  .sponsorship-type p {
    width: 100%;
    font-size: 1.2rem;
    margin: auto;
    line-height: 1.4;
  }

  .sponsorship-grid {
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
    max-width: 90%;
    padding-top: 20px;
  }

  .sponsorship-card {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    font-size: 1rem;
  }

  .sponsorship-card h2 {
    font-size: 1.2rem;
  }

  .sponsorship-card p {
    font-size: 1rem;
  }

  .sponsorship-card .image-wrapper {
    width: 60px;
    height: 60px;
  }

  .sponsorship-card .image-wrapper .dog {
    object-fit: fill;
  }

  .help-patenschaften .text-box {
    max-width: 100%;
    margin: auto;
  }

  .container {
    max-width: 90%;
  }
}

.help-form-container {
  max-width: 800px;
  width: 90%;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: auto;
}

.help-form-container h2 {
  text-align: center;
  font-size: 2.5em;
  color: #998a73;
}

.help-form-container p {
  margin-bottom: 20px;
  text-align: left;
}

.help-form-container label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #998a73;
  text-align: left;
}

.help-form-container input[type="text"],
.help-form-container input[type="email"],
.help-form-container select,
.help-form-container textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #998a73;
  border-radius: 4px;
  box-sizing: border-box;
}

.help-form-container textarea {
  resize: vertical;
  height: 60px;
}

.help-form-container button {
  background-color: #998a73;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.help-form-container button:hover {
  background-color: #8a7c66;
}

@media (max-width: 480px) {
  .help-form-container h2 {
    font-size: 2.0em;
  }
}


.adoption-form-container {
  width: 80%;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: auto;
}

.adoption-form-container h2 {
  text-align: center;
  font-size: 2.5em;
  color: #998a73;
}

.adoption-form-container p {
  margin-bottom: 20px;
  text-align: left;
}

.adoption-form-container label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #998a73;
  text-align: left;
}

.adoption-form-container input[type="text"],
.adoption-form-container input[type="email"],
.adoption-form-container input[type="tel"],
.adoption-form-container input[type="date"],
.adoption-form-container input[type="number"],
.adoption-form-container select,
.adoption-form-container textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #998a73;
  border-radius: 4px;
  box-sizing: border-box;
}


.adoption-form-container textarea {
  resize: vertical;
  height: 60px;
}

.adoption-form-container button {
  background-color: #998a73;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.adoption-form-container button:hover {
  background-color: #8a7c66;
}

@media (max-width: 480px) {
  .adoption-form-container {
    width: 90%;
  }

  .adoption-form-container h2 {
    font-size: 2.0em;
  }
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
}

.timeline-steps-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  height: 120px;
  width: 100%;
  padding: 10px;
  justify-content: center;
  padding-bottom: 20px;
}

.timeline-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background-color: #fff;
  border-radius: 50%;
  color: black;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background-color 0.3s, transform 0.3s;
  cursor: pointer;
  flex: 0 0 auto;
  border: 2px solid #998a73;
}

.timeline-step.active,
.timeline-step:hover {
  background-color: #998a73;
  color: #fff;
  transform: scale(1.1);
}

.timeline-line {
  width: 60px;
  height: 2px;
  background-color: #ddd8d1;
  transition: background-color 0.3s;
  flex: 0 0 auto;
}


.timeline-details-container {
  width: 70%;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.20);
  padding: 50px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  flex-direction: row;
  margin-bottom: 50px;
}

.timeline-details-container.active {
  display: flex;
}

.timeline-details-container h2 {
  font-size: 2.5rem;
  color: black;
  margin-bottom: 20px;
  text-align: left;
}

.timeline-details-container p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-right: 10px;
  padding-right: 50px;
  text-align: justify;
}

.timeline-details-container img {
  max-width: 500px;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
  .timeline-steps-container {
    width: 100%;
    height: 120px;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
  }

  .timeline-step {
    width: 60px;
    height: 60px;
    font-size: 0.8rem;
  }

  .timeline-line {
    width: 30px;
  }

  .timeline-details-container {
    width: 100%;
    padding: 20px;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
  }

  .timeline-details-container h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    max-width: 100%;
  }

  .timeline-details-container p {
    font-size: 1rem;
    margin-bottom: 10px;
    padding-right: 0;
  }

  .timeline-details-container img {
    width: 100%;
    height: auto;
  }
}

.contact-section {
  width: 70%;
  margin: 0 auto;
  text-align: center;
}

.contact-background-image {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: 60%;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}


.contact-form-container {
  align-items: left;
  width: 100%;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-form-container h2 {
  text-align: center;
  font-size: 2.5em;
  color: #998a73;
}

.contact-form-container p {
  margin-bottom: 20px;
  text-align: left;
}

.contact-form-container label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #998a73;
  text-align: justify;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container select,
.contact-form-container textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #998a73;
  border-radius: 4px;
  box-sizing: border-box;
}

.contact-form-container textarea {
  resize: vertical;
  height: 60px;
}

.contact-form-container button {
  background-color: #998a73;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.contact-form-container button:hover {
  background-color: #8a7c66;
}

.contact-section .contact-info {
  font-size: 1.5em;
  vertical-align: flex-start;
  align-items: start;
  padding-top: 200px;
}

.form-group-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  font-weight: normal;
  color: #998a73;
  cursor: pointer;
  line-height: 1.6;
  width: 100%;
}

.email-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.email-link:hover {
  color: #998a73;
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}


.social-links a i {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: cover;
}

.contact-section .flex-container {
  align-items: start;
}

@media (max-width: 480px) {
  .contact-section .flex-container {
    align-items: center;
  }

  .contact-section {
    width: 90%;
  }

  .contact-section h2 {
    font-size: 3em;
  }

  .flex-container {
    margin: 0 auto;
  }

  .contact-section .flex-container .text-box h1 {
    font-size: 2.0em;
  }

  .contact-form-container h2 {
    font-size: 2.0em;
  }

  .contact-section .contact-info {
    font-size: 1em;
    padding-top: 0px;
  }

  .social-links {
    justify-content: center;
    align-items: center;
  }

}

.icon-circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #998a73;
  border-radius: 50%;
  padding: 10px;
  margin-right: 10px;
  width: 50px;
  height: 50px;
}

.icon-circle i {
  color: #998a73;
  font-size: 24px;
}

.tiere-de-video-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 80%;
  margin: 0 auto;
}

.tiere-de-video-content .btn-arrow {
  height: 50px;
  font-size: 1.2em;
}

.tiere-de-video-content h3 {
  font-size: 5em;
  padding-top: 100px;
}

.tiere-de-video-content-subtitle {
  width: 70%;
  margin: 0 auto;
  font-size: 0.8em;
}

.tiere-de-video-content-btn {
  padding-top: 50px;
}

@media (max-width: 500px) {
  .tiere-de-video-content {
    width: 100%;
  }

  .tiere-de-video-content-subtitle {
    width: 90%;
    font-size: 0.8em;
  }

  .tiere-de-video-content h3 {
    font-size: 3em;
    padding-top: 50px;
  }

  .tiere-de-video-content .btn-arrow {
    font-size: 1em;
    height: 45px;
  }

  .tiere-de-video-content-btn {
    padding-top: 0px;
  }
}


.footer-page {
  text-align: left;
}

.footer-page p {
  line-height: 1.6;
}

.footer-page a {
  color: #998a73;
}

.footer-page .section-title {
  line-height: 1.6;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-page .section {
  margin-bottom: 20px;
}

.portfolio-section {
  width: 90%;
  margin: 0 auto;
  padding-bottom: 50px;
}

.portfolio-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.portfolio-header img {
  max-width: 100%;
  height: 400px;
  object-fit: cover;
  width: 400px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.portfolio-info {
  text-align: left;
  padding-left: 50px;
  max-width: 400px;
}

.portfolio-info h1 {
  font-size: 2.5em;
  font-weight: 700;
  padding-bottom: 15px;
}

.portfolio-info p {
  font-size: 1.2em;
  line-height: 1.4em;
  margin: 8px 0;
}

.portfolio-info-note {
  padding-top: 15px;
}

.portfolio-description {
  align-items: center;
  text-align: justify;
  padding-top: 50px;
  width: 60%;
  margin: 0 auto;
}

.portfolio-bilder {
  text-align: center;
  padding-top: 50px;
}

.portfolio-video {
  text-align: center;
  padding-top: 50px;
}

.portfolio-video iframe {
  width: 1024px;
  height: 576px;
  border: none;
  border-radius: 20px;
}

.portfolio-bilder .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.portfolio-bilder .grid-item {
  background-color: #fff;
  border-radius: 30px;
  width: 400px;
  box-shadow: none;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  border: 1px solid #998a73;
  line-height: 1.2;
  margin: 20px;
}

.portfolio-bilder .grid-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.portfolio-chance {
  padding-top: 50px;
  text-align: center;
}

.portfolio-chance .btn {
  margin-top: 20px;
  font-size: 1.2em;
  margin-right: 20px;
  margin-left: 20px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: calc(100% - 60px);
  object-fit: contain;
  background-color: transparent;
  border: none;
  padding: 0;
}

.modal .close,
.modal .prev,
.modal .next {
  position: absolute;
  top: 20px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.modal .close {
  right: 20px;
}

.modal .prev {
  left: 20px;
  top: 50%;
}

.modal .next {
  right: 20px;
  top: 50%;
}

.modal .close img,
.modal .prev img,
.modal .next img {
  width: 40px;
  height: 40px;
  transition: fill 0.3s;
}

.modal .close:hover img,
.modal .prev:hover img,
.modal .next:hover img {
  opacity: 0.7;
}

/* Responsive adjustments */
@media screen and (max-width: 800px) {
  .portfolio-bilder .grid-item {
    flex-basis: calc(50% - 10px);
  }

}

@media screen and (max-width: 600px) {
  .portfolio-bilder .grid-item {
    flex-basis: calc(100% - 10px);
    margin: 10px;
  }

  .portfolio-section {
    width: 100%;
  }

  .portfolio-header img {
    width: 350px;
    height: 350px;
    object-fit: cover;
  }

  .portfolio-info h1 {
    text-align: center;
    font-size: 1.8em;
  }

  .portfolio-info p {
    font-size: 1.2em;
  }

  .portfolio-info {
    text-align: left;
    padding-left: 0px;
    width: 70%;
  }

  .portfolio-description {
    width: 80%;
  }

  .portfolio-description p {
    text-align: justify;
    font-size: 1.2em;
    line-height: 1.2em;
  }


  .portfolio-video iframe {
    width: 95vw;
    height: calc(95vw * 9 / 16);
    border: none;
  }
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #000000;
  background-image: url("../icon/arrow-down.1e8437db0ca3.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 24px 24px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 50px;
}

.news-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  break-inside: avoid;
}

.news-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card img {
  width: 100%;
  height: 400px;
  display: block;
  object-fit: cover;
}

.news-card .content {
  padding: 50px;
}

.news-card .content h3 {
  font-size: 1.6em;
  margin-bottom: 20px;
}

.news-card .content .date {
  font-size: 1.1em;
  color: #777;
  margin-bottom: 15px;
}

.news-card .content p {
  font-size: 1.2em;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .news-container {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-top: 30px;
    width: 95%;
  }

  .news-card .content {
    padding: 20px;
  }

  .news-card .content p {
    font-size: 1em;
    line-height: 1.4;
  }

  .news-card .content h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
  }
}

.post-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 15px;
  min-height: 100vh;
}

.post-content {
  flex: 2;
  margin-right: 20px;
}

.post-sidebar {
  flex: 1;
  padding-left: 50px;
  border-radius: 8px;
  max-width: 300px;
  position: sticky;
  height: 100vh;
  top: 100px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .post-container {
    flex-direction: column;
    padding: 0 10px;
  }

  .post-sidebar {
    position: relative;
    width: 100%;
    margin-top: 20px;
    padding-left: 0px;
    top: 10px;
  }

  .post-content {
    margin-right: 0;
    width: 100%;
  }
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.post-photo-carousel {
  position: relative;
  margin-bottom: 20px;
}

.post-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: none;
}

.single-photo {
  height: auto;
}

.post-photo.active {
  display: block;
}

.post-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.post-arrow.left {
  left: 10px;
}

.post-arrow.right {
  right: 10px;
}

.post-description {
  margin-top: 20px;
  font-size: 1.0rem;
}

.post-description a {
  color: #998a73;
}

.post-sidebar-section {
  margin-bottom: 20px;
}

.post-sidebar-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: #333;
}

.latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.latest-posts li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.latest-posts li a {
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  display: block;
}

.latest-posts li a:hover {
  color: #998a73;
}

.post-date {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .post-photo {
    height: 300px;
  }

  .post-title {
    font-size: 2em;
  }

  .post-description {
    margin-top: 20px;
    font-size: 1.0rem;
  }
}

.gooding-text {
  align-items: left;
  width: 60%;
}

@media (max-width: 768px) {
  .gooding-text {
    text-align: justify;
    width: 90%;
  }
}

.event-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dark transparent background */
.event-overlay-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.event-overlay-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Image container with close button */
.event-img-wrapper {
  position: relative;
  display: block;
  width: fit-content;
}

/* Button wrapper to ensure proper spacing and centering */
.event-button-wrapper {
  margin-top: 20px;
}

.event-close {
  position: absolute;
  top: -40px;  /* was -15px, moved further up */
  right: -10px;
  cursor: pointer;
}

.event-close img {
  width: 40px;
  height: 40px;
}

@media (max-width: 1620px) {
  .overlay-img {
    width: 100vw !important;  /* force full viewport width */
    max-width: 100vw !important; 
    height: auto;
    max-height: none;
  }

  .event-close {
    top: -40px;
    right: 0px;
  }

  .redirect-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .button-wrapper {
    margin-top: 0px;
  }
}
