/* ===== Spinner (used by HerosectionSkeleton) ===== */
.ch-loading-spinner-wrapper {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #d5d5d500;
  backdrop-filter: blur(100px);
}
.ch-loading-spinner {
  position: relative; 
  width: 40px;
  height: 40px;
}

.ch-loading-spinner::before,
.ch-loading-spinner::after {
  content: "";
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  animation: ch-loading-spinner-rfi6tk 1s infinite linear;
  box-sizing: border-box;
  border: 8px solid rgba(2, 131, 71, 0.1);
  border-radius: 50%;
  position: absolute;
}

.ch-loading-spinner::before {
  animation-direction: reverse;
  border-right-color: #ffbb00;
  right: calc(50% - 4px);
}

.ch-loading-spinner::after {
  border-left-color: #ffbb00;
  left: calc(50% - 4px);
}

@keyframes ch-loading-spinner-rfi6tk {
  0% {
    transform: rotate(0deg);
  }
  50%,
  100% {
    transform: rotate(360deg);
  }
}

/* ===== Content Skeleton (page-shaped placeholder) ===== */
.ch-skeleton-page {
  min-height: 100vh;
  background: #f8f7f5;
  padding: 0 16px;
}

/* Pulse animation */
.ch-skeleton-pulse {
  background: linear-gradient(90deg, #eae8e4 25%, #f2f0ed 50%, #eae8e4 75%);
  background-size: 200% 100%;
  animation: ch-skeleton-shimmer 1.4s ease infinite;
}

@keyframes ch-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Nav skeleton */
.ch-skeleton-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.ch-skeleton-logo {
  width: 120px;
  height: 36px;
  border-radius: 8px;
}

.ch-skeleton-nav-links {
  display: flex;
  gap: 20px;
}

.ch-skeleton-nav-link {
  width: 70px;
  height: 16px;
  border-radius: 6px;
}

/* Hero skeleton */
.ch-skeleton-hero {
  max-width: 1400px;
  margin: 8px auto 20px;
  height: 520px;
  border-radius: 20px;
}

/* Card row skeleton */
.ch-skeleton-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.ch-skeleton-card {
  height: 260px;
  border-radius: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .ch-skeleton-hero {
    height: 300px;
    border-radius: 16px;
  }
  .ch-skeleton-cards {
    grid-template-columns: 1fr;
  }
  .ch-skeleton-card {
    height: 200px;
  }
  .ch-skeleton-nav-links {
    display: none;
  }
}
