/* ==========================================================================
   MockMaster Frontend Styling & Mobile Edge-to-Edge Breakout
   ========================================================================== */

/*
 * CRITICAL REQUIREMENT:
 * At mobile widths (max-width: 767px), make ONLY the MockMaster frontend wrapper
 * break out of any restrictive parent container (Elementor, Gutenberg, themes).
 */
@media (max-width: 767px) {
  .mockmaster-frontend-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow-x: clip !important;
    padding-left: 12px;
    padding-right: 12px;
  }
}

.mockmaster-frontend-wrapper {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0 auto;
}

.mockmaster-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 15px 0;
}

.mockmaster-test-card {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #1e293b;
}

.mockmaster-test-card h3 {
  color: #fff;
  margin-top: 0;
  font-size: 1.15rem;
}

.mockmaster-test-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 15px 0;
}

.mockmaster-btn-start {
  display: inline-block;
  background: #4f46e5;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
