/* all.css - consolidated styles for lists_single_all and related pages */

/* Partner logos */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.82;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

/* Pillar modal */
.pillar-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.pillar-modal.open {
  display: flex;
}
.pillar-modal-content {
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  background: #0f172a;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.9);
}

/* Cert thumb */
.cert-thumb {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cert-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

/* CA carousel - from ca.html */
.ca-carousel {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}
.ca-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.ca-viewport::-webkit-scrollbar {
  display: none;
}
.ca-track {
  display: flex;
  gap: 0;
}
.ca-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 12px;
}
@media (min-width: 1024px) {
  .ca-card {
    flex-basis: 33.333%;
  }
  .ca-viewport {
    scroll-snap-type: x proximity;
  }
}
.ca-cardInner {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.ca-thumb {
  height: 150px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.ca-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ca-body {
  padding: 12px 14px 14px;
}
.ca-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #c5a059;
  color: #0f172a;
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 8px;
}
.ca-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
  font-family: 'Oswald', sans-serif;
  color: #0f172a;
}
.ca-desc {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}
.ca-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  user-select: none;
  z-index: 10;
}
.ca-btn:hover {
  background: #c5a059;
  color: #0f172a;
}
.ca-btn.left {
  left: 10px;
}
.ca-btn.right {
  right: 10px;
}
@media (max-width: 1023px) {
  .ca-btn {
    display: none;
  }
}
.ca-hint {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #64748b;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: rgba(248, 250, 252, 0.8);
}

/* Floating sidebar buttons (lists_single_all) */
.floating-btns {
  position: fixed;
  right: 0;
  bottom: 56px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-right: 0;
}
@media (min-width: 768px) {
  .floating-btns {
    right: 32px;
  }
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.20);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
@media (min-width: 768px) {
  .floating-btn {
    width: 64px;
    height: 64px;
  }
}

.floating-btn i {
  font-size: 20px;
}
@media (min-width: 768px) {
  .floating-btn i {
    font-size: 30px;
  }
}

.floating-btn--email {
  background: #C5A059;
  color: #0F172A;
}
.floating-btn--wa {
  background: #25D366;
  color: #ffffff;
}
.floating-btn--top {
  background: #0F172A;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
}

.floating-btn:hover {
  transform: scale(1.08);
}
.floating-btn:active {
  transform: scale(0.96);
}

.floating-btn--top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
