/* Grid Layout */
.eaag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  margin-top: 60px;
}

/* Card Style */
.eaag-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 0.5px solid;
  border-image-source: linear-gradient(90deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.18) 123.29%);
  backdrop-filter: blur(70px);
  box-shadow: 0px 2px 32px 0px #00000014;
}

.eaag-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* Thumbnail */
.eaag-thumb img {
  width: 100%;
  object-fit: cover;
}

/* Info Section */
.eaag-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

/* Category Badge */
.eaag-badge {
  display: inline-block;
  font-family: "Lato", sans-serif;
  background: #00000014;
  color: #000000;
  padding: 4px 8px;
  font-size: 16px;
  font-weight: 400;
  border-radius: 4px;
  box-sizing: border-box;
  max-width: 124px;
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
}

/* Headline */
.eaag-info h3 {
  font-family: "Playfair Display";
  margin-bottom: 20px !important;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  color: #000000F2;
}

/* Excerpt */
.eaag-info p {
  font-family: "lato";
  font-size: 16px;
  font-weight: 400;
  color: #00000099;
  margin-bottom: 16px;
}

/* Meta */
.eaag-info small {
  font-size: 16px;
  font-weight: 400;
  font-family: "lato";
  color: #000000;
}

/* Link */
.eaag-info a {
  font-weight: 500;
  font-size: 16px;
  color: #000000DE;
  font-family: "lato";
  text-decoration: none;
}

.eaag-info a:hover {
  text-decoration: underline;
}

.eaag-info h3 a {
  font-family: "Playfair Display";
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.eaag-info h3 a:hover {
  color: #ac8421;
}

/* Button */
#eaag-load-more {
  font-family: "Playfair Display";
  background-color: #D4AF37;
  color: #ffffff;
  padding: 12px 70px;
  border: none;
  border-radius: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  transition: background 0.3s ease;
}

#eaag-load-more:hover {
  background-color: #8c6c1d;
}

.text-center {
  text-align: center;
  margin-top: 2rem;
}

/* Spinner Style (Minimal) */
.eaag-spinner {
  margin-left: 8px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* End Message Style */
.eaag-end-message {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  color: #555;
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (max-width: 1366px) {
  .eaag-grid {
    margin-top: 52px;
  }
}

@media (max-width: 1024px) {
  .eaag-grid {
    margin-top: 46px;
  }
}

/* ----------- max-width: 767px ----------- */
/* Show 2 columns on tablets and mid-sized devices */
@media (max-width: 767px) {

  .eaag-grid {
    margin-top: 42px;
    grid-template-columns: repeat(2, 1fr);
  }

  .eaag-info h3 {
    margin-bottom: 12px !important;
    font-size: 22px;
  }
}

/* ----------- max-width: 576px ----------- */
/* Show only 1 column on small devices/mobiles */
@media (max-width: 576px) {
  .eaag-grid {
    margin-top: 32px;
    grid-template-columns: 1fr;
  }

  .eaag-info h3 {
    margin-bottom: 8px !important;
  }
}
