/* Scholar Publications Fetcher Styles v1.5.3
   Responsive, Symmetric & Decorative */

/* ─────────── Decorative Vine Ornaments ─────────── */
.gs-first-pub {
  position: relative;
  overflow: visible;
}

/* Shared ornament styling */
/* Shared ornament styling */
.gs-first-pub::before,
.gs-first-pub::after {
  content: "";
  position: absolute;
  width: 140px; /* Anda bisa mengubah ukuran ini sesuai kebutuhan */
  height: 140px; /* Anda bisa mengubah ukuran ini sesuai kebutuhan */
  background-image: url("../image.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12; /* Ubah jika perlu */
  pointer-events: none;
}

/* Top-left flourish */
.gs-first-pub::before {
  top: -20px;
  left: -20px;
  transform: rotate(10deg);
}

/* Bottom-right flourish */
.gs-first-pub::after {
  bottom: -20px;
  right: -20px;
  transform: rotate(190deg);
}
/* ────────────────────────────────────────────────── */

/* Wrapper symmetry: main publication and cards have the same max-width and are centered */
.gs-first-pub,
.gs-cards {
  max-width: 900px; /* adjust as needed */
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Main publication card */
.gs-first-pub {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gs-first-pub h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.gs-meta {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 1rem;
}

.gs-desc {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* Secondary publication cards grid */
.gs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gs-card {
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.gs-card:hover {
  transform: translateY(-4px);
}

.gs-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.gs-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: background 0.2s;
  text-align: center;
}

.gs-button:hover {
  background: #005177;
}

.gs-more {
  text-align: center;
  margin-top: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .gs-first-pub {
    padding: 1rem;
  }
  .gs-first-pub h2 {
    font-size: 1.5rem;
  }
  .gs-desc {
    font-size: 0.9rem;
  }
  .gs-cards {
    gap: 1rem;
  }
  .gs-card {
    padding: 0.75rem;
  }
  .gs-card h3 {
    font-size: 1rem;
  }
  .gs-meta {
    font-size: 0.8rem;
  }
  .gs-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .gs-first-pub {
    padding: 0.75rem;
  }
  .gs-first-pub h2 {
    font-size: 1.25rem;
  }
  .gs-meta {
    font-size: 0.75rem;
  }
  .gs-desc {
    font-size: 0.85rem;
  }
  .gs-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .gs-card h3 {
    font-size: 0.95rem;
  }
  .gs-card {
    padding: 0.5rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .gs-first-pub {
    background: #2b2b2b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
  .gs-first-pub h2,
  .gs-desc,
  .gs-card h3 {
    color: #eee;
  }
  .gs-meta {
    color: #aaa;
  }
  .gs-card {
    background: #1e1e1e;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  }
  .gs-button {
    background: #0096d6;
  }
  .gs-button:hover {
    background: #006680;
  }
}