/* Blog Post 3D Hover Gallery */
.blog-post-gallery-section {
  padding: 3px 0;
  /*background-color: #ffffff; /* optional: match your gallery theme */
  margin: 60px auto;
  max-width: 1200px;
  text-align: center;
}

.gallery-container {
  width: 90%;
  margin: auto;
  overflow: visible;

}

.gallery-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  perspective: 1000px;
  
}

.gallery-item {
  width: 12vw;
  height: 20vw;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 1.25s cubic-bezier(.1,.7,0,1), 
              filter 1.25s cubic-bezier(.1,.7,0,1), 
              width 1.25s cubic-bezier(.1,.7,0,1);
  will-change: transform, filter, width;
  outline: none;
  filter: grayscale(1) brightness(0.5);
}

.gallery-item.active {
  width: 45vw;
  transform: scale(1.2) translateZ(15vw); /* added scale for zoom */
  filter: none;
  z-index: 100;
}

.gallery-item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/*faq section css*/
.ring-container {
    perspective: 2000px;
    width: 350px;
    height: 400px;
    position: relative;
    margin: 60px auto 0;
    margin-top: 150px;
}


.ring {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    cursor: grab;
}
.faq-card {
    position: absolute;
    width: 250px;
    height: 320px;
    background: #222;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.faq-card h3 {
    color: #f5c542;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 10px;
}

.faq-card p {
    font-size: 0.9rem;
    text-align: center;
    color: #ddd;
}
/*trustuser*/

.trusted-users-3d {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 60px 0;
  perspective: 800px;
}

.trust-badge-row {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: linear-gradient(145deg,#c0ab36,#d6cca4);
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatars-row {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.avatars-row img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -15px; /* negative margin for overlap */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.avatars-row img:first-child {
  margin-left: 0;
}

.avatars-row img:hover {
  transform: scale(1.2);
  z-index: 2;
}

.trust-info {
  text-align: center;
  color: #fff;
}

.trust-info .stars {
  font-size: 20px;
  color: #ffd700;
  margin-bottom: 5px;
}

.trust-info .counter {
  font-size: 18px;
  font-weight: bold;
} 

/*blog-post-blur-gallery-section*/

/* Scope all gallery styles to #gallery3 */
#gallery3 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  perspective: 1000px;
}

#gallery3 .gallery-item {
  width: 12vw;
  height: 20vw;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 1.25s cubic-bezier(.1,.7,0,1), 
              filter 1.25s cubic-bezier(.1,.7,0,1), 
              width 1.25s cubic-bezier(.1,.7,0,1);
  will-change: transform, filter, width;
  outline: none;
  filter: grayscale(1) brightness(0.5);
  position: relative;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

/* Blur background when active */
#gallery3 .gallery-item.active::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  background: inherit;
  filter: blur(6px) brightness(0.5);
  z-index: 0;
}

/* Bring text above the blur */
#gallery3 .gallery-item .text {
  position: relative;
  z-index: 10;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.5);
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#gallery3 .gallery-item.active .text {
  opacity: 1;
}

#gallery3 .gallery-item.active {
  width: 45vw;
  transform: scale(1.2) translateZ(15vw);
  filter: none;
  z-index: 100;
}

#gallery3 .gallery-item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
