/* ═══════════════════════════════════════════════════════
   Subject Page – Sleek Button Cards
   Overrides per-page .btn, .studymaterial-grid, .mocktest-grid
   ═══════════════════════════════════════════════════════ */

.studymaterial-grid,
.mocktest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 columns */
  gap: 10px;
  margin-top: 14px;
}

/* Single column on small phones */
@media (max-width: 480px) {
  .studymaterial-grid,
  .mocktest-grid {
    grid-template-columns: 1fr;
  }
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--accent1) 0%, var(--accent2) 100%);
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.22);
  margin: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Shimmer sweep on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255,255,255,0.22),
    transparent
  );
  transform: skewX(-15deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::before {
  left: 135%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

/* ── Icon box ── */
.btn-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ── Label ── */
.btn-label {
  flex: 1;
  text-align: left;
  line-height: 1.35;
}

/* ── Chevron arrow ── */
.btn-arrow {
  width: 15px;
  height: 15px;
  min-width: 15px;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* ── Dark mode ── */
[data-theme="dark"] .btn {
  box-shadow: 0 3px 14px rgba(0,0,0,0.38);
  border-top-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .btn:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.48);
}
