:root {
  --bcg-color: #ffee00;
  --second-color: #3abef9;
  --second-paragraph: #333333da;
  --paragraph: #333;
  --black-bcg: #ffffff;
  --title-color: #000;
  --welcome-img: url(/img/index/light/background.png);
  --border-color: #f0f0f0;
  --white-shadow: 1px solid #33333367;
  --second-icon: #33333396;
  --date: #33333381;
  --dark-yellow: #e4d500;
  --second-bcg: #f8f8f8;
  --picture-color: #ffffff;
}

.dark-theme {
  --second-paragraph: #e0e0e0;
  --paragraph: #f0f0f0;
  --black-bcg: #1e1e1e;
  --title-color: #ffffff;
  --welcome-img: url(/img/index/dark/pcbcg.png);
  --border-color: initial;
  --white-shadow: initial;
  --second-icon: #f0f0f09c;
  --date: #f0f0f073;
  --second-bcg: #181818;
  --picture-color: #0c0c0c;
  --bcg-color: #fff786;
  --dark-yellow: #ffee00;
}


#mobileMenu .h-active,
header .h-active {
  color: var(--title-color) !important;
}
#first {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  height: 850px;
}

#first::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--welcome-img);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

#first .content-container {
  position: relative;
  z-index: 1;
  margin-left: 20px;
}
h1 {
  display: flex;
  position: relative;
  font-size: 5.5rem !important;
  font-weight: bold !important;
  color: var(--title-color) !important;
}

h1 .dot-c {
  width: 20px;
  height: 20px;
  background-color: var(--bcg-color);
  margin-top: 70px;
  border-radius: 50%;
  margin-left: 4px;
}

#first .form-container {
  /* background-color: var(--second-bcg); */
  width: 100%;
}
#searchForm {
  position: relative;
  width: 100%;
  max-width: 575px;
  transition: all 0.3s ease;
}

#searchForm::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bcg-color);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

#searchForm.transition::after {
  animation: formPulse 0.6s ease;
}

@keyframes formPulse {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
  }
}

#searchForm .f-h {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

#searchForm .f-h button {
  width: 50%;
  margin-inline: 5px;
  height: 50px;
  border-radius: 10px;
  border: none;
  background-color: transparent;
  border: 2px solid var(--border-color);
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--title-color);
  transition: all 0.3s ease, transform 0.2s ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

#searchForm .f-h button .btn-text {
  position: relative;
  z-index: 3;
}

#searchForm .f-h button.active-c {
  border: none;
  background-color: var(--bcg-color);
  color: #000;
}

#searchForm .f-h button.active-c::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  animation: slideEffect 0.6s forwards;
}

@keyframes slideEffect {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

#searchForm .f-h button:hover {
  background-color: var(--bcg-color);
  color: #000;
  border: none;
}

#searchForm .f-h button:active {
  transform: scale(0.98);
}

#searchForm .buy-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  transition: opacity 0.3s ease;
}

.buy-container.changing {
  animation: formChange 0.4s ease;
}

@keyframes formChange {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  50% {
    opacity: 0.7;
    transform: translateX(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

#searchForm .buy-container .input-c {
  width: 48%;
  margin-bottom: 10px;
  position: relative;
  transition: transform 0.2s;
}

.buy-container input,
.buy-container select {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  background-color: var(--picture-color);
  color: var(--paragraph);
  padding-left: 3px;
  border: 2.5px solid var(--border-color);
}

.buy-container input {
  padding-left: 7px;
}

.buy-container option {
  background-color: var(--black-bcg);
}

.buy-container select:hover {
  cursor: pointer;
}

.buy-container .m-r {
  margin-right: 10px;
}

.buy-container {
  width: 100%;
}

.buy-container .button-c {
  width: 98%;
}

.buy-container button {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  background-color: var(--border-color);
  border: none;
  transition: all 0.3s;
  color: var(--paragraph);
  font-size: 1rem;
  letter-spacing: 1px;
}

.buy-container button:hover {
  opacity: 0.85;
}

.advanced-c {
  margin-left: 12px;
  margin-top: 4px;
}

.advanced-c a {
  color: var(--dark-yellow);
  font-size: 1rem;
}

/* More pronounced animation for make and model fields */
.input-c.animate-field {
  z-index: 2;
}

.input-c.animate-field input,
.input-c.animate-field select {
  animation: strongBorderHighlight 0.4s ease-in-out;
  box-shadow: 0 0 0 3px rgba(255, 238, 0, 0.3);
}

/* Faster border animation */
@keyframes strongBorderHighlight {
  0% {
    border-color: var(--border-color);
    box-shadow: none;
  }
  50% {
    border-color: var(--bcg-color);
    border-width: 3px;
    box-shadow: 0 0 10px rgba(255, 238, 0, 0.4);
  }
  100% {
    border-color: var(--border-color);
    box-shadow: none;
  }
}

/* Form type badge */
.form-type-badge {
  position: absolute;
  top: -25px;
  right: 5px;
  background-color: var(--bcg-color);
  color: #000;
  font-size: 0.85rem;
  padding: 3px 12px;
  border-radius: 5px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.1s, transform 0.1s;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  font-weight: 500;
}

.form-type-badge.show {
  opacity: 1;
  transform: translateY(0);
}

/* Focus effect */
.buy-container input:focus,
.buy-container select:focus {
  border-color: var(--bcg-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 238, 0, 0.2);
}

/* Input ripple effect */
.input-ripple {
  position: absolute;
  background-color: rgba(255, 238, 0, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.4s ease-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

#category {
  margin-top: 30px;
}

#category .title-c h3 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--title-color);
}

#category .disable-c {
  display: flex; /* Override the display: none to make all buttons available for sliding */
}
#category .categories {
  position: relative;
  max-width: 790px;
  margin-inline: auto;
  overflow: hidden;
}
#category .categories-f-c {
  position: relative;
  overflow: hidden;
  width: calc(100% - 110px);
  margin: 0 auto;
}
#category .slider-track {
  display: flex;
  transition: transform 0.4s ease;
  width: auto;
}
#category .categories-f-c button {
  margin-inline: 10px;
  width: 150px;
  height: 50px;
  border-radius: 10px;
  background-color: transparent;
  border: 2px solid var(--border-color);
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--second-paragraph);
  transition: all 0.3s;
  /* Add these properties to center text both horizontally and vertically */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Keep the existing flex-shrink property */
  flex-shrink: 0;
}
#category .categories {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}
#category .categories-f-c {
  display: flex;
  align-items: center;
}

/* Enhance category button hover effects */
#category .categories-f-c button:hover {
  background-color: rgba(255, 238, 0, 0.15); /* Subtle yellow background */
  border-color: var(--bcg-color); /* Yellow border */
  color: var(--paragraph); /* Slightly darker text */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: all 0.2s ease; /* Smooth transition */
}

/* Keep active button styles stronger than hover */
#category .categories-f-c button.active-c,
#category .slider-track button.active-c {
  background-color: var(--bcg-color) !important;
  border: none !important;
  color: #333 !important;
  transform: translateY(0) !important; /* Reset any transform */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow */
}

/* Add transition properties to all category buttons for smooth effects */
#category .categories-f-c button,
#category .slider-track button {
  transition: all 0.2s ease-in-out;
}

#category .arr-c {
  display: grid;
  place-content: center;
  background-color: var(--black-bcg);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--second-paragraph);
  cursor: pointer;
  border: var(--white-shadow);
  transition: all 0.2s;
  z-index: 10;
  position: relative;
}
#category .arr-c:hover {
  opacity: 0.6;
}
#category .arr-c span {
  transform: scale(2);
}

#category .custom-card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin-inline: auto;
  margin-top: 20px;
  text-align: center;
}
#category .c-card {
  margin-inline: 10px;
  margin-top: 20px;
}

#category .image-c {
  background-color: var(--border-color);
  border-radius: 20px;
}
#category img {
  width: 250px;
  height: 250px;
  filter: grayscale(100%); /* Makes images black and white */
}

#category .c-border {
  border: 1px solid var(--border-color);
  width: 180px;
  margin-inline: auto;
}

#category .content-c {
  text-align: center;
  margin-top: 5px;
}
#category h6 {
  font-size: 1.4rem;
  color: var(--title-color);
  font-weight: bold;
  letter-spacing: 1px;
}
#category h5 {
  font-size: 1rem;
  color: var(--second-paragraph);
  margin-top: 5px;
  cursor: pointer;
}
#category h5 a {
  color: var(--second-paragraph);
  text-decoration: none;
}

#category h5 a:hover {
  text-decoration: underline;
}

#category .c-card button {
  width: 250px;
  height: 250px;
  border-radius: 20px;
  background-color: var(--bcg-color);
  border: none;
}
#category .c-card button span {
  transform: scale(1.6);
  margin-bottom: 10px;
  color: #000;
}
#category .c-card button h6 {
  font-size: 1.2rem;
  color: #333333c2 !important;
}

#garage {
  margin-top: 60px;
  max-width: 1700px;
  margin-inline: auto;
}

#garage .flex-c {
  display: flex;
  align-items: center;
  justify-content: center;
}
#garage .flex-c .image-c {
  width: 40%;
  height: 700px;
}
#garage .flex-c .image-c img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  margin-left: 10px;
}
#garage .flex-c .c-c {
  width: 60%;
}

#garage .c-c .title {
  width: 90%;
  margin-inline: auto;
}
#garage .c-c .title h3 {
  font-size: 2.2rem;
  color: var(--title-color);
}
#garage .c-c .title p {
  font-size: 1rem;
  color: var(--paragraph);
  letter-spacing: 1px;
  line-height: 27px;
}

#garage .cards-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 90%;
  margin-inline: auto;
}
#garage .custom-card {
  width: 47.8%;
  margin-left: 15px;
  margin-top: 20px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  height: 230px;
  padding-inline: 15px;
  padding-top: 15px;
}
#garage .custom-card .t-c {
  display: flex;
  align-items: center;
}
#garage .custom-card span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background-color: #333333;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
}
#garage .custom-card h4 {
  margin-left: 5px;
  padding-top: 6px;
  color: var(--paragraph);
  font-size: 1.8rem;
}
#garage .custom-card p {
  color: var(--second-paragraph);
  margin-top: 5px;
  margin-left: 5px;
  letter-spacing: 1px;
  line-height: 28px;
  font-size: 0.95rem;
}

#garage .contrast {
  background-color: var(--border-color);
}
#garage .contrast span {
  background-color: var(--bcg-color);
  color: #333;
}
#garage .contrast h4 {
  font-weight: bold;
  letter-spacing: 1px;
}

#app {
  margin-top: 50px;
  max-width: 1000px;
  margin-inline: auto;
}
#app .f-c {
  display: flex;
  align-items: center;
  justify-content: center;
}

#app .image-c,
#app .text-c {
  width: 50%;
}

#app img {
  width: 100%;
}
#app h3 {
  font-size: 2.7rem;
  color: var(--title-color);
}
#app p {
  font-size: 1rem;
  color: var(--second-paragraph);
  line-height: 33px;
}

#app .btns-c {
  display: flex;
  align-items: center;
  margin-top: -5px;
}

#app .btns-c button {
  margin-right: 20px;
  width: 200px;
  height: 50px;
  border: none;
  border-radius: 10px;
  color: #000;
}

#app .btns-c button.apple {
  background-color: var(--bcg-color);
}

#app .btns-c button.android {
  background-color: #fff;
  border: var(--white-shadow);
}

#blog {
  max-width: 1700px;
  margin-inline: auto;
  margin-top: 50px;
  padding-inline: 10px;
}

#blog .title-c h3 {
  font-size: 2.2rem;
  color: var(--title-color);
  text-align: center;
  margin-bottom: 30px;
}

#blog .flex-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#blog a {
  width: 30%;
  margin-inline: 20px;
  margin-bottom: 50px;
  text-decoration: none;
}

#blog .custom-card {
  width: 100%;
}

#blog .custom-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 30px;
}

#blog .custom-card h4 {
  font-size: 1.6rem;
  margin-left: 7px;
  margin-top: 5px;
  color: var(--title-color);
  margin-bottom: 0px;
  margin-top: 10px;
}

#blog .custom-card p {
  font-size: 0.9rem;
  margin-left: 7px;
  line-height: 27px;
  margin-top: 4px;
  letter-spacing: 1px;
  color: var(--second-paragraph);
}

#blog .footer-btn {
  margin-top: -30px;
  text-align: center;
}

#blog .footer-btn button {
  width: 170px;
  height: 55px;
  background-color: var(--bcg-color);
  border: none;
  color: #000;
  font-size: 1.05rem;
  border-radius: 10px;
  transition: all 0.3s;
}

#blog .footer-btn button:hover {
  opacity: 0.8;
}

/* Blog Coming Soon Styles */
.blog-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
  margin: 0px auto;
  max-width: 1200px;
  width: 90%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-coming-soon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--bcg-color),
    transparent
  );
  bottom: 0;
  left: 0;
}

.coming-soon-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  background-color: var(--bcg-color);
  border-radius: 50%;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.coming-soon-icon:hover {
  transform: rotate(10deg);
}

.coming-soon-icon span {
  font-size: 2rem;
  color: #000;
}

.blog-coming-soon h4 {
  font-size: 2.4rem;
  color: var(--title-color);
  margin-bottom: 20px;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.blog-coming-soon h4::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--bcg-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.blog-coming-soon p {
  color: var(--second-paragraph);
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 15px;
  line-height: 1.7;
}

.coming-soon-btn {
  display: none;
  width: 200px;
  height: 55px;
  background-color: transparent;
  border: 2px solid #333;
  color: #333 !important;
  font-size: 1.05rem;
  border-radius: 10px;
  cursor: not-allowed;
  margin-top: 20px;
  transition: all 0.3s ease;
  opacity: 0.7;
  position: relative;
  overflow: hidden;
}

.coming-soon-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(51, 51, 51, 0.2),
    transparent
  );
  transform: skewX(-30deg) translateX(-100px);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: skewX(-30deg) translateX(-100px);
  }
  100% {
    transform: skewX(-30deg) translateX(300px);
  }
}

@media only screen and (max-width: 1279px) {
  .blog-coming-soon {
    padding: 50px 25px;
    max-width: 1000px;
  }

  .coming-soon-icon {
    width: 100px;
    height: 100px;
  }

  .coming-soon-icon span {
    transform: scale(2.2);
  }

  .blog-coming-soon h4 {
    font-size: 2.1rem;
  }

  .blog-coming-soon p {
    font-size: 1.1rem;
    max-width: 650px;
  }
}

@media only screen and (max-width: 1023px) {
  .blog-coming-soon {
    padding: 40px 20px;
    max-width: 800px;
  }

  .blog-coming-soon h4 {
    font-size: 1.8rem;
  }

  .blog-coming-soon p {
    font-size: 1.05rem;
    max-width: 600px;
  }

  .coming-soon-btn {
    width: 180px;
    height: 50px;
  }
}

@media only screen and (max-width: 767px) {
  .blog-coming-soon {
    padding: 35px 15px;
    margin: 20px auto;
  }

  .coming-soon-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
  }

  .coming-soon-icon span {
    transform: scale(1.8);
  }

  .blog-coming-soon h4 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .blog-coming-soon p {
    font-size: 1rem;
    max-width: 100%;
    line-height: 1.6;
  }

  .coming-soon-btn {
    width: 160px;
    height: 48px;
    font-size: 0.95rem;
  }
}

@media only screen and (max-width: 499px) {
  .blog-coming-soon {
    padding: 30px 15px;
    border-radius: 15px;
  }

  .coming-soon-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .coming-soon-icon span {
    transform: scale(1.5);
  }

  .blog-coming-soon h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .blog-coming-soon p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .coming-soon-btn {
    width: 140px;
    height: 45px;
    font-size: 0.9rem;
    border-radius: 8px;
  }
}

#faq {
  margin-top: 60px;
}

#faq h3 {
  color: var(--title-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
}

#faq .answers-container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

#faq .accordion-item {
  background-color: var(--border-color) !important;
  border: none !important;
  margin-bottom: 20px;
  border-radius: 20px;
}

.accordion-item:not(.collapsed) {
  box-shadow: none !important; /* Plavi outline oko otvorene stavke */
}

#faq .accordion-button {
  border-radius: 20px;
  background-color: var(--border-color) !important;
  color: var(--paragraph);
  height: 70px;
  font-size: 1.1rem;
}
#faq .accordion-body {
  color: var(--second-paragraph) !important;
}

#faq .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

/* Alert container styling */
.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.alert-container .alert {
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-left: 5px solid var(--bcg-color);
}

.alert-container .alert-warning {
  background-color: var(--black-bcg);
  color: var(--title-color);
  border-color: var(--bcg-color);
}

/* Style the close button to match theme */
.alert-container .btn-close {
  opacity: 0.7;
  filter: none; /* Remove default filter */
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.dark-theme .alert-container .btn-close {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.alert-container .btn-close:hover {
  opacity: 1;
}

@media only screen and (max-width: 1499px) {
  h1 {
    font-size: 4.75rem !important;
  }
  h1 .dot-c {
    margin-top: 55px;
  }
  #searchForm {
    max-width: 500px;
  }
  #garage .custom-card {
    height: 283px;
  }
}

@media only screen and (max-width: 1279px) {
  :root {
    --welcome-img: url(/img/index/light/slapbcg.png);
  }

  .dark-theme {
    --welcome-img: url(/img/index/dark/slapbcg.png);
  }


  h1 {
    font-size: 4.6rem !important;
  }
  h1 .dot-c {
    margin-top: 52px;
  }
  #searchForm {
    max-width: 485px;
  }
  #category .title-c h3 {
    font-size: 2rem;
  }
  #category .categories {
    max-width: 700px;
  }
  #category .categories-f-c button {
    width: 130px;
    height: 47px;
    font-size: 1rem;
    margin-inline: 6px;
  }
  #category .arr-c span {
    transform: scale(1.7);
  }
  #category .arr-c {
    width: 42px;
    height: 42px;
  }

  #category .custom-card-container {
    max-width: 700px;
  }

  #category img {
    width: 210px;
    height: 210px;
  }
  #category .c-card button {
    width: 210px;
    height: 210px;
  }
  #category h6 {
    font-size: 1.25rem;
    margin-bottom: 3.5px;
  }
  #category h5 {
    font-size: 0.95rem;
    margin-top: 3.5px;
  }
  #category .c-card button span {
    transform: scale(1.4);
  }

  #category .c-card button h6 {
    font-size: 1.1rem;
  }
  #garage .c-c .title h3 {
    font-size: 2rem;
  }
  #garage .c-c .title p {
    font-size: 0.95rem;
  }
  #garage .custom-card {
    width: 47%;
    padding-inline: 5px;
  }
  #garage .custom-card span {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  #garage .custom-card h4 {
    font-size: 1.4rem;
  }
  #garage .custom-card p {
    font-size: 0.93rem;
    line-height: 26px;
    margin-top: 3px;
  }
  #garage .flex-c .image-c {
    height: 750px;
  }

  #app img {
    display: flex;
    justify-content: center;
    width: 80%;
    margin-inline: auto;
  }
  #app .text-c h3,
  #app .text-c p {
    width: 90%;
  }
  #app h3 {
    font-size: 2.4rem;
  }
  #app p {
    font-size: 0.98rem;
    line-height: 29px;
  }
  #app .btns-c button {
    width: 160px;
    height: 47px;
    font-size: 1rem;
  }
  #blog .title-c h3 {
    font-size: 2.1rem;
  }
  #blog a {
    width: 31%;
    margin-inline: 10px;
  }
  #blog .custom-card img {
    height: 200px;
  }
  #blog .custom-card h4 {
    font-size: 1.3rem;
    line-height: 31px;
  }
  #blog .footer-btn button {
    width: 150px;
    height: 52px;
    font-size: 1rem;
  }
  #faq h3 {
    font-size: 2.1rem;
  }
  #faq .accordion-button {
    font-size: 1.05rem;
  }
}

@media only screen and (max-width: 1023px) {
  :root {
    --welcome-img: url(/img/index/lmobile.png);
  }

  .dark-theme {
    --welcome-img: url(/img/index/lmobile.png);
  }

  #first {
    display: block;
    padding-top: 0px;
    height: 700px;
  }
  #first .content-container {
    top: 150px;
  }
  h1 {
    font-size: 4rem !important;
  }
  h1 .dot-c {
    margin-top: 45px;
  }
  #searchForm {
    max-width: 428px;
  }

  #garage .flex-c .image-c {
    width: 0%;
    display: none;
  }

  #garage .flex-c .c-c {
    width: 100%;
  }
  #garage .c-c .title {
    width: 100%;
    padding-inline: 15px;
  }
  #garage .cards-container {
    width: 100%;
  }
  #garage .custom-card {
    width: 48%;
    height: 200px;
  }
  #app img {
    width: 100%;
  }
  #app .text-c h3,
  #app .text-c p {
    width: 95%;
  }
  #blog .flex-container {
    justify-content: initial;
    flex-wrap: nowrap;
    overflow: auto;
  }
  #blog a {
    min-width: 350px;
  }
  #blog .footer-btn button {
    width: 120px;
    height: 43px;
    font-size: 0.9rem;
  }
}

@media only screen and (max-width: 767px) {
  #searchForm {
    max-width: 364px;
  }

  h1 {
    font-size: 3.4rem !important;
  }
  #category .categories-f-c {
    width: 100%;
  }
  #category .arr-c {
    display: none;
  }
  #category .title-c h3 {
    font-size: 1.7rem;
  }
  #category .categories-f-c {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
  }
  #category .disable-c {
    display: block;
  }
  #category .categories-f-c button {
    min-width: 125px;
    height: 43px;
    font-size: 0.95rem;
  }
  #category .c-card {
    width: 30%;
    margin-inline: 7px;
  }
  #category .image-c {
    width: 100%;
    border-radius: 12px;
  }
  #category img {
    object-fit: cover;
    width: 100%;
    height: 150px;
  }
  #category .c-border {
    width: 100%;
  }

  #category .c-card button {
    width: 100%;
    height: 150px;
    border-radius: 12px;
  }
  #category .c-card button span {
    transform: scale(1.2);
  }
  #category .c-card button h6 {
    font-size: 1rem;
    margin-top: -7px;
  }

  #category h6 {
    font-size: 1.1rem;
  }

  #category h5 {
    font-size: 0.9rem;
  }

  #category .c-border {
    width: 70%;
  }
  #garage .c-c .title h3 {
    font-size: 1.6rem;
  }
  #garage .c-c .title p {
    font-size: 0.9rem;
  }
  #garage .custom-card {
    position: relative;
    width: 45%;
    height: 255px;
    padding-inline: 2px;
  }
  #garage .custom-card span {
    position: absolute;
    top: 0;
    margin-top: -16px;
    margin-left: -12px;
  }

  #garage .custom-card p {
    margin-top: -3px;
    font-size: 0.9rem;
    line-height: 23px;
  }

  #app .f-c {
    flex-direction: column;
  }
  #app .image-c,
  #app .text-c {
    width: 90%;
  }
  #app img {
    width: 50%;
  }
  #app h3 {
    font-size: 2.1rem;
  }
  #app p {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  #app .btns-c button {
    width: 140px;
    height: 43px;
    font-size: 0.95rem;
  }
  #blog .title-c h3 {
    font-size: 1.9rem;
  }
  #blog a {
    min-width: 300px;
  }
  #blog .custom-card img {
    border-radius: 15px;
  }
  #blog .custom-card h4 {
    font-size: 1.2rem;
  }
}

@media only screen and (max-width: 499px) {
  :root {
    --welcome-img: url(/img/index/mobile.png);
  }

  .dark-theme {
    --welcome-img: url(/img/index/mobile.png);
  }


  #first {
    height: 550px;
    padding-top: 66px;
  }
  #first::before {
    opacity: 0.85; /* Blago smanji transparentnost za mekši izgled */
  }
  h1 {
    margin-left: 3px;
    margin-bottom: 0px;
  }
  #searchForm {
    width: 98%;
    max-width: 100%;
    margin-inline: auto;
    margin-top: -12px;
  }

  #searchForm .f-h button {
    margin-inline: 0px;
  }
  #searchForm .f-h button:first-child {
    margin-right: 11px !important;
  }

  #first .content-container {
    top: 0;
    margin-left: 0px;
  }
  h1 {
    font-size: 2.4rem !important;
  }
  h1 .dot-c {
    margin-top: 27px;
    width: 12px;
    height: 12px;
  }

  #searchForm {
    max-width: 100%;
  }
  #searchForm .f-h button {
    height: 45px;
    font-size: 0.95rem;
  }
  .buy-container input,
  .buy-container select {
    font-size: 0.95rem;
    height: 45px;
  }
  .buy-container button {
    height: 45px;
    font-size: 0.94rem;
  }
  #garage .c-c .title p {
    margin-top: 15px;
  }
  #category .c-card {
    width: 45%;
  }
  #garage .custom-card {
    width: 95%;
    height: auto;
  }
  #app .image-c,
  #app .text-c {
    width: 95%;
  }
  #app img {
    width: 80%;
    max-width: 250px;
  }

  #app .text-c h3,
  #app .text-c p {
    width: 100%;
    margin-left: 7px;
  }
  #app .text-c p {
    line-height: 25px;
  }
  #app h3 {
    font-size: 1.9rem;
  }
  #app .btns-c a {
    width: 140px;
  }
  #app .btns-c button.android {
    margin-left: 5px;
  }
}

/* Viking logo container styles */
.viking-logo-container {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 0 18px 18px;
  pointer-events: none;
}

.viking-logo {
  width: 120px;
  height: auto;
  display: none;
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}

.viking-logo-white {
  display: block;
}

.dark-theme .viking-logo-white {
  display: none;
}

.dark-theme .viking-logo-black {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .viking-logo-container {
    padding: 10px 0 10px 10px;
  }
  .viking-logo {
    width: 85px;
  }
}

@media (max-width: 499px) {
  .viking-logo-container {
    padding: 6px 0 6px 6px;
  }
  .viking-logo {
    width: 58px;
  }
}

/* Make sure #first is position:relative for absolute positioning */
#first {
  position: relative;
}

.viking-logo-link {
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  /* Remove pointer-events: none from parent so link works */
  pointer-events: auto;
}
