/* ProProfs Brain Games home v3 — scoped to .home-v3 (reference: proprofs-brain-games-v3) */
.home-v3 {
  width: 100%;
  margin: 0;
  --blue: #1870d5;
  --blue-dark: #0a53a8;
  --blue-light: #e8f0fd;
  --orange: #f5a623;
  --orange-dark: #d4891a;
  --orange-light: #fff4e0;
  --green: #61a42d;
  --red: #f46464;
  --head: #2e2e2e;
  --body: #4d4d4d;
  --muted: #a7a7a8;
  --surface: #f8f9fc;
  --border: #e8eaf0;
  --white: #ffffff;
  --r-card: 14px;
  --r-btn: 100px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.12);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--body);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}
.home-v3 *,
.home-v3 *::before,
.home-v3 *::after {
  box-sizing: border-box;
}
.home-v3 .hero {
  background: #fff;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.home-v3 .hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
}
.home-v3 .hero-h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  color: var(--head);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.home-v3 .hero-h1 .accent {
  color: var(--blue);
}
.home-v3 .hero-p {
  font-size: 17px;
  color: var(--muted);
  margin: 0 auto 0;
  max-width: 560px;
  line-height: 1.6;
}
/* Width/padding: same column as header via .ppg-layout-shell in header_topbar.css */
.home-v3 .main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.home-v3 .sec {
  padding: 40px 0 0;
}
.home-v3 .sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.home-v3 .sec-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--head);
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-v3 .sec-title svg {
  stroke: #707070;
  color: #707070;
  flex-shrink: 0;
}
.home-v3 .sec-link {
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.home-v3 .sec-link:hover {
  text-decoration: underline;
}
.home-v3 .sec-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.home-v3 .feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}
.home-v3 .card-lg {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.home-v3 .card-lg:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.home-v3 .card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.home-v3 .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.home-v3 .card-lg:hover .card-thumb img {
  transform: scale(1.05);
}
.home-v3 .card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.04), transparent);
  pointer-events: none;
}
.home-v3 .card-body {
  padding: 16px;
}
.home-v3 .card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--head);
  margin-bottom: 5px;
}
.home-v3 .card-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.home-v3 .stars {
  color: var(--orange);
  font-size: 12px;
}
.home-v3 .card-plays {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.home-v3 .badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  margin-left: auto;
}
.home-v3 .b-pop {
  background: #fef3c7;
  color: #d97706;
}
.home-v3 .b-new {
  background: #dcfce7;
  color: #16a34a;
}
.home-v3 .all-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 4px;
}
.home-v3 .thumb-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
/* Layout width/padding: #ppg-site-header.ppg-layout-shell + this block (shared rule in header_topbar.css) */
.home-v3 .site-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  padding-top: 0;
  padding-bottom: 0;
}
.home-v3 .site-content {
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
}
.home-v3 .ad-column {
  flex: 0 0 300px;
  width: 300px;
  max-width: 300px;
  order: 2;
  position: sticky;
  top: 80px;
  padding: 20px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: flex-start;
}
.home-v3 .ad-unit {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.home-v3 .ad-leaderboard {
  width: 100%;
  min-height: 250px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fd 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  padding: 20px 16px;
}
.home-v3 .ad-leaderboard-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.home-v3 .ad-leaderboard-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.home-v3 .ad-leaderboard-headline {
  font-size: 18px;
  font-weight: 700;
  color: var(--head);
  line-height: 1.2;
  margin-bottom: 6px;
}
.home-v3 .ad-leaderboard-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.home-v3 .ad-leaderboard-cta {
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  padding: 8px 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.home-v3 .ad-leaderboard-cta:hover {
  background: var(--blue-dark);
}
.home-v3 .ad-square {
  width: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #fff9f0 0%, #fff3dc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
}
.home-v3 .ad-square-icon {
  font-size: 36px;
  line-height: 1;
}
.home-v3 .ad-square-headline {
  font-size: 16px;
  font-weight: 700;
  color: var(--head);
  text-align: center;
}
.home-v3 .ad-square-sub {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.home-v3 .ad-square-cta {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  padding: 7px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.home-v3 .home-mobile-ad {
  padding: 16px 0;
  margin-top: 8px;
  background: var(--surface);
  border-bottom: none;
  border-top: 1px solid var(--border);
}

/* Why ProProfs — matches proprofs-brain-games-v3 reference (SVG icons) */
.home-v3 .why-section {
  width: 100%;
  margin: 0;
  padding: 56px 0 60px;
  margin-top: 40px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-sizing: border-box;
}
.home-v3 .why-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}
.home-v3 .why-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--head);
  margin: 0 0 8px;
  line-height: 1.35;
}
.home-v3 .why-divider {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 auto 40px;
  border-radius: 2px;
}
.home-v3 .why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.home-v3 .why-item {
  padding: 36px 28px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-sizing: border-box;
}
.home-v3 .why-item:nth-child(3n) {
  border-right: none;
}
.home-v3 .why-item:nth-child(7),
.home-v3 .why-item:nth-child(8),
.home-v3 .why-item:nth-child(9) {
  border-bottom: none;
}
.home-v3 .why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.home-v3 .why-icon svg {
  display: block;
  flex-shrink: 0;
}
.home-v3 .why-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--head);
  margin: 0 0 10px;
  line-height: 1.25;
}
.home-v3 .why-item p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  margin: 0;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.home-v3 .why-item p a {
  color: var(--blue);
  text-decoration: none;
}
.home-v3 .why-item p a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .home-v3 .ad-column {
    display: none;
  }
  .home-v3 .site-wrap {
    display: block;
  }
}
@media (max-width: 1024px) {
  .home-v3 .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-v3 .all-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .home-v3 .hero-inner {
    padding: 28px 20px;
  }
  .home-v3 .feat-grid,
  .home-v3 .all-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .home-v3 .why-inner {
    padding: 0 16px;
  }
  .home-v3 .why-grid {
    grid-template-columns: 1fr;
  }
  .home-v3 .why-item {
    border-right: none;
    padding: 28px 20px 26px;
  }
  .home-v3 .why-item:nth-child(n) {
    border-bottom: 1px solid var(--border);
  }
  .home-v3 .why-item:last-child {
    border-bottom: none;
  }
}
@media (max-width: 520px) {
  .home-v3 .feat-grid,
  .home-v3 .all-games-grid {
    grid-template-columns: 1fr;
  }
}
