.cge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

@media (max-width: 1024px) {
  .cge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 767px) {
  .cge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.cge-card {
  --cge-overlay: #0b1a12;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 3 / 4;
  padding: 24px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #0f2a1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: transform .5s ease, border-color .5s ease, box-shadow .5s ease;
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
}
.cge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(201, 168, 76, 0.25);
}

.cge-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .4;
  transition: transform .7s ease, opacity .7s ease;
  z-index: 0;
}
.cge-card:hover .cge-card__img { transform: scale(1.1); opacity: .75; }

.cge-card__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, var(--cge-overlay) 0%, color-mix(in srgb, var(--cge-overlay) 70%, transparent) 45%, color-mix(in srgb, var(--cge-overlay) 30%, transparent) 100%);
  transition: opacity .5s ease;
}
.cge-card:hover .cge-card__overlay { opacity: .75; }

.cge-card__head,
.cge-card__body { position: relative; z-index: 2; }

.cge-card__head {
  display: flex; align-items: flex-start; justify-content: space-between;
}

.cge-card__number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px; font-weight: 600; line-height: 1;
  color: #c9a84c;
}

.cge-card__refs {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.3);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  letter-spacing: .1em;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.cge-card__body { display: flex; flex-direction: column; gap: 10px; }

.cge-card__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px; font-weight: 600; line-height: 1.2; margin: 0;
  color: #fff;
  transition: color .5s ease;
}

.cge-card__desc {
  margin: 0;
  font-size: 13px; line-height: 1.5;
  color: rgba(255,255,255,0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cge-card__foot {
  margin-top: 14px;
  padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: border-color .5s ease;
}

.cge-card__explore {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: #c9a84c;
}

.cge-card__arrow {
  display: inline-flex;
  color: #c9a84c;
  transition: transform .5s ease;
}
.cge-card:hover .cge-card__arrow { transform: translate(4px, -4px); }

@media (max-width: 767px) {
  .cge-card { padding: 16px; border-radius: 12px; }
  .cge-card__number { font-size: 32px; }
  .cge-card__title { font-size: 18px; }
  .cge-card__desc { font-size: 12px; }
}
