/* ═══════════════════════════════════════════════
   Article Grid Pro – v3.0
   ═══════════════════════════════════════════════ */


.agpro-wrap {
  font-family: "Montserrat", Sans-serif;
  width: 100%;
  --agpro-btn-border: #CCCCCC;
  --agpro-btn-color: #333333;
  --agpro-btn-hover: #111111;
  --agpro-radius: 16px;
  --agpro-gap: 20px;
}
article.agpro-card {
    border: 1px solid #979797;
}

.agpro-body {
    padding: 32px 10px 20px 20px;
}

.agpro-title {
    font-size: 20px;
}

p.agpro-excerpt {
    color: black;
    font-size: 11px;
    font-weight: 500;
}

a.agpro-read-btn {
    border: 2px solid #D3AF5E;
    border-radius: 100px;
    font-size: 12px;
}

.agpro-author-bar {
    margin: 0 20px;
    padding: 20px 0px 20px 0px;
}

.agpro-author-bar span.agpro-author-name {
    text-transform: capitalize;
}
/* ── Grid ─────────────────────────────────────── */
.agpro-grid {
     display: grid;
    gap: var(--agpro-gap);
    margin-bottom: 65px;
    padding: 0px 70px;
}
.agpro-cols-1 { grid-template-columns: 1fr; }
.agpro-cols-2 { grid-template-columns: repeat(2, 1fr); }
.agpro-cols-3 { grid-template-columns: repeat(3, 1fr); }
.agpro-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card ─────────────────────────────────────── */
.agpro-card {
  background: #FFFFFF;
  border-radius: var(--agpro-radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.agpro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.11);
}

/* ── Image ────────────────────────────────────── */
.agpro-thumb-link { display: block; text-decoration: none; }
.agpro-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ECECEC;
}
.agpro-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.agpro-card:hover .agpro-thumb img { transform: scale(1.05); }
.agpro-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #E8E8E8;
}
.agpro-thumb-placeholder svg { width: 40px; height: 40px; color: #BBBBBB; }

/* ── Body ─────────────────────────────────────── */
.agpro-body {
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.agpro-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.agpro-title a {
  color: #1A1A1A;
  text-decoration: none;
  transition: color .15s;
}
.agpro-title a:hover { color: #555; }
.agpro-excerpt {
  margin: 0;
  font-size: 12.5px;
  color: #888;
  line-height: 1.65;
  flex: 1;
}

/* ── Button ───────────────────────────────────── */
.agpro-btn-wrap { margin-top: 6px; }
.agpro-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--agpro-btn-color);
  background: transparent;
  border: 1.5px solid var(--agpro-btn-border);
  border-radius: 8px;
  padding: 7px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  letter-spacing: -.01em;
}
.agpro-read-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.agpro-read-btn:hover {
  border-color: var(--agpro-btn-hover);
  color: var(--agpro-btn-hover);
  background: #F8F8F8;
  text-decoration: none;
}
.agpro-pdf-btn { border-color: #C5C5C5; }
.agpro-btn-na {
  opacity: .38;
  pointer-events: none;
  cursor: default;
}

/* ── Author bar ───────────────────────────────── */
.agpro-author-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #F2F2F2;
}
.agpro-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
}
.agpro-author-text { display: flex; flex-direction: column; gap: 1px; }
.agpro-written-by {
  font-size: 10px; color: #AAAAAA;
  font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
}
.agpro-author-name { font-size: 13px; font-weight: 700; color: #1A1A1A; }
.agpro-date { font-size: 11.5px; color: #AAAAAA; margin-left: auto; }

/* ── No posts ─────────────────────────────────── */
.agpro-no-posts { text-align: center; color: #AAAAAA; font-size: 15px; padding: 60px 0; }

/* ═══════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════ */
.agpro-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 4px;
  gap: 16px;
}
.agpro-pag-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  color: #333;
  border: 1.5px solid #D8D8D8;
  border-radius: 50px;
  padding: 10px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.agpro-pag-btn:hover:not(.agpro-pag-disabled) {
  border-color: #AAAAAA;
  background: #F6F6F6;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  text-decoration: none;
  color: #111;
}
.agpro-pag-disabled { opacity: .35; pointer-events: none; }
.agpro-pag-center {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #555; font-weight: 500;
}
.agpro-select-wrap { position: relative; display: inline-flex; align-items: center; }
.agpro-page-sel {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600; color: #333;
  background: #FFF;
  border: 1.5px solid #D8D8D8;
  border-radius: 8px;
  padding: 6px 28px 6px 12px;
  outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.agpro-page-sel:focus { border-color: #999; }
.agpro-chevron {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 6px; color: #888; pointer-events: none;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 960px) {
  .agpro-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .agpro-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .agpro-cols-4,.agpro-cols-3,.agpro-cols-2 { grid-template-columns: 1fr; }
  .agpro-pagination { flex-wrap: wrap; justify-content: center; gap: 12px; }
	.agpro-grid.agpro-cols-4 {
    padding: 0px !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}
}


.agpro-btn-wrap {
    margin-top: 12px !important;
    margin-bottom: 10px !important;
}