/* ================= Reset & Base ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Segoe UI", sans-serif;
  min-height: 100vh;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
}

/* ================= Horizontal Mock Test Section ================= */
.popular-mock-tests-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 15px 0;
  margin-left: 10px;
}

.popular-mock-tests {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1;
}

.popular-mock-tests::-webkit-scrollbar {
  display: none;
}

.mock-test-grid {
  display: flex;
  gap: 20px;
  width: max-content;
}

.mock-test-item {
  flex: 0 0 auto;
  width: 110px;
  text-align: center;
  font-size: 14px;
  color: #222;
}

.mock-test-item img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid silver;
  background: #f9f9f9;
  padding: 5px;
}

/* Scroll arrows */
.scroll-arrow {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.scroll-arrow.left { margin-right: 10px; }
.scroll-arrow.right { margin-left: 10px; }

@media(max-width: 768px) {
  .scroll-arrow { display: none; }
  .popular-mock-tests {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* ================= Vertical Mock Test Section ================= */
.mock-test-section-vertical {
  padding: 30px 15px;
  background: #fff;
}

.mock-test-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #102a43;
  margin-bottom: 20px;
}

.mock-test-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Mock test card */
.mock-test-card-vertical {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  background: linear-gradient(135deg, #eef3fa, #ffffff);
  border: 1px solid #d0e2f2;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 70, 140, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.mock-test-card-vertical::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at center, rgba(0,123,255,0.15), transparent 70%);
  transform: rotate(45deg);
  z-index: 0;
}

.mock-test-card-vertical:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.mock-test-content {
  flex: 1;
}

.mock-test-name {
  font-size: 16px;
  font-weight: 600;
  color: #1d2939;
  margin-bottom: 8px;
}

.mock-test-desc {
  font-size: 1rem;
  color: #475467;
  margin-bottom: 12px;
}

.mock-test-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  background: #e0f0ff;
  color: #004080;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.mock-test-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.start-test-btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.start-test-btn:hover { background-color: #0056b3; }

.wishlist-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.wishlist-btn:hover { color: #e0245e; }
.wishlist-btn i { width: 24px; height: 24px; }

/* Load more / view all */
.load-more-container, .mock-btn-container {
  text-align: center;
  margin-top: 20px;
}

.load-more-btn, .view-all-mock-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.load-more-btn:hover, .view-all-mock-btn:hover { background-color: #0056b3; }

/* ================= Responsive Adjustments ================= */
@media(max-width: 768px) {
  .mock-test-item img {
    width: 70px;
    height: 70px;
  }

  .mock-test-item { width: 80px; font-size: 12px; }

  .mock-test-card-vertical {
    flex-direction: column;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid silver;
  }

  .mock-test-desc { display: none; }
  .wishlist-btn { display: none; }

  .mock-test-actions { width: 100%; justify-content: flex-end; margin-top: 10px; }
  .start-test-btn { width: 100%; padding: 10px; font-size: 12px; text-align: center; }
  .mock-test-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media(max-width: 480px) {
  .mock-test-item img { width: 63px; height: 63px; padding: 3px; }
  .mock-test-item { width: 60px; }
    .view-all-mock-btn {
        width: 90%;
        font-size: 14px;
        margin: 0 auto;
        display: block;
        margin-top: -25px;
        
    }  .mock-test-section-vertical { padding: 15px 20px; }
}
.mock-test-meta {
  display: flex;
  justify-content: space-between; /* Left badges left, button right */
  align-items: center;
  flex-wrap: nowrap;
  gap: 15px;
}

/* Left badges */
.meta-left {
  display: flex;
  gap: 10px;
}

/* Mobile layout */
@media(max-width: 768px) {
  .mock-test-meta {
    flex-direction: row; /* badges left, button right */
    justify-content: space-between;
    align-items: flex-start;
  }

  .meta-left {
    display: flex;
    flex-direction: column; /* stack badges vertically */
    gap: 5px;
  }

  .meta-right {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: 10px;
  }

  .start-test-btn {
    white-space: nowrap;
    font-size: 14px;
    padding: 8px 16px;
  }
}
