.mytheme-container { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.mytheme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.ach-card { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.ach-thumb { position: relative; padding-top: 66%; background-size: cover; background-position: center; }
.ach-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%); }
.ach-download { position:absolute; top:12px; right:12px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:rgba(17,24,39,0.9); color:#fff; text-decoration:none; box-shadow:0 6px 18px rgba(0,0,0,0.25); }
.ach-download:hover { color:#fff; filter:brightness(1.05); }
.ach-title { position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.3; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

.mytheme-pagination { margin-top: 28px; text-align: center; }
.mytheme-pagination .page-numbers { display: inline-block; padding: 8px 12px; margin: 0 4px; border-radius: 8px; background: #edf2f7; color: #2d3748; text-decoration: none; }
.mytheme-pagination .page-numbers.current { background: #667eea; color: #ffffff; }

@media (max-width: 992px) { .mytheme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mytheme-grid { grid-template-columns: 1fr; } }


/* Ensure achievement overlays never stack above navbar dropdowns */
.ach-thumb { z-index: 1; }
.ach-overlay { z-index: 1; }
.ach-download { z-index: 2; }
.ach-title { z-index: 2; }
