/* 

Theme name: Quiz
Author: Roodee
Version: 1.4

*/

/* Optional: match a clean, bold sans look */
:root{
  --container: 900px;
  --pad-x: 24px;

--header-grad-a: #1c1f24; /* deep charcoal */
--header-grad-b: #3a4048; /* cool steel grey */
  --text: #ffffff;

  --nav-w: 320px;
  --radius: 999px;
}

/* Fonts */
@font-face {
  font-family: 'Lato-Hairline';
  src: url('/wp-content/themes/quiz/fonts/Lato-Hairline.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato-Black';
  src: url('/wp-content/themes/quiz/fonts/Lato-Black.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato-Bold';
  src: url('/wp-content/themes/quiz/fonts/Lato-Bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body {font-family: 'Lato-Hairline', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;}

html, body {
  margin: 0;
  padding: 0;
}

.site-header{
  color: var(--text);
  background: linear-gradient(90deg, var(--header-grad-a), var(--header-grad-b));
  position: sticky; /* change to fixed if you want it always visible */
  top: 0;
  z-index: 1000;
}

.site-header__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.site-header__logo-link{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.site-header .custom-logo{
  display: block;
  height: 100px;     /* tweak to match your logo */
  width: auto;
}
.site-header__site-name{
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 18px;
}
.site-header__cta{
  margin-left: 16px;
  white-space: nowrap;
}
.cta-mobile{
  display: none;
}
/* Desktop nav */
.site-nav{
  display: flex;
  align-items: center;
}
.site-nav__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
}
.site-nav__list a{
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0.95;
}
.site-nav__list a:hover,
.site-nav__list a:focus-visible{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Hamburger button (hidden on desktop) */
.site-header__toggle{
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.site-header__toggle:focus-visible{
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}
.hamburger{
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
  border-radius: var(--radius);
}
.hamburger::before,
.hamburger::after{
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: var(--radius);
}
.hamburger::before{ top: -7px; }
.hamburger::after{ top: 7px; }

/* Overlay */
.site-nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
}

/* Close button (only used on mobile off-canvas) */
.site-nav__close{
  display: none;
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.site-nav__close:focus-visible{
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}

/* Main content area */
.site-main {
  background: #ffffff;
}

.site-main__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--pad-x);
}

.site-main__inner > *:first-child {
  margin-top: 0;
}

.site-main__inner p {
  line-height: 1.6;
}

.site-main__inner h1,
.site-main__inner h2,
.site-main__inner h3 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
 font-family: 'Lato-Bold'
}

/* Standard pages: 65/35 layout */
.page-layout{
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.page-layout__main{
  flex: 0 0 65%;
  min-width: 0; /* prevents overflow with long content */
}

.page-layout__info{
  flex: 0 0 35%;
  min-width: 0;
}

/* Ensure info content can fill and look tidy */
.info-panel__content{
  height: 100%;
}

/* ===== Info Panel Box ===== */

.info-box{
  border: 1px solid #00adef;
  border-radius: 18px;
  background: #fff;
  padding: 22px 18px;
}
.info-box > img{
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
}
/* Headings inside info box */
.info-box h3{
  margin: 0 0 10px;
}

/* Lists */
.info-box ul{
  margin: 8px 0 16px;
  padding-left: 18px;
}

.info-box li{
  margin: 6px 0;
}

 ul li {
line-height: 1.6;
  margin: 6px 0;
}

/* Store badges: always side-by-side */
.store-badges{
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0 18px;
}

.store-badge{
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.store-badge img{
  width: 100%;
  max-width: 240px;
  height: 56px;          /* equal visual height */
  object-fit: contain;
  display: block;
}

/* Payment info box: gradient background (match header/footer) */
.info-box--payment{
  border: none; /* remove blue outline */
  background: linear-gradient(
    90deg,
    var(--header-grad-a),
    var(--header-grad-b)
  );
  padding: 24px 18px;
}

/* Payment heading */
.info-box--payment h2{
  color: #ffffff;
  text-align: center;
  margin: 0 0 16px;
}


/* Center PayPal WITHOUT flex (prevents narrow collapse) */
.info-box--payment #paypal-container-K3JB3E3QS87PN{
  width: 100%;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
	border-radius: 18px;
	padding: 20px;
  max-width: 420px;   /* sensible card width; adjust if you want larger */
  margin: 16px auto 0; /* centers horizontally */
}

/* Ensure any iframe/buttons inside can use the available width */
.info-box--payment #paypal-container-K3JB3E3QS87PN iframe,
.info-box--payment #paypal-container-K3JB3E3QS87PN > *{
  max-width: 100%;
}

/* Live Stream template: full-width row then 65/35 */
.live-stream__top{
  width: 100%;
  margin: 0 0 28px;
}

/* Smooth scrolling for anchor links */
html{
  scroll-behavior: smooth;
}

/* =========================
   LIVE quiz badge
   ========================= */

/* Ensure image wrapper can position overlay */
.quiz-card__image-link{
  position: relative;
  display: block;
}

/* Red circular badge */
.quiz-card--live .quiz-card__image-link::after{
  content: "Play From Home";
  position: absolute;
  bottom: 10px;
  right: 10px;

  width: 84px;
  height: 84px;
  border-radius: 50%;

  background: #e10600; /* strong red */
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  padding: 8px;

  animation: livePulse 1s infinite;
  pointer-events: none;
}

/* Flashing animation: on 0.75s, off 0.25s */
@keyframes livePulse{
  0%   { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Hero container */
.hero{
  position: relative;
  width: 100%;
  height: 750px;
  max-height: 100vh; /* prevent overflow on small screens */
  overflow: hidden;
}

/* Video & image fill */
.hero__media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop instead of stretch */
}

/* Featured image fallback */
.hero__media--image{
  background-size: cover;
  background-position: center;
}

/* Optional overlay to improve text contrast */
.hero__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.25);
}

/* Centered content block (transparent background) */
.hero__content{
  position: relative;
  z-index: 2;
  height: 100%;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 0 var(--pad-x);
  color: #fff;
}

/* Headings */
.hero__h1{
  margin: 0 0 10px;
  font-weight: 800;
	font-size: 70px;
}

.hero__h3{
  margin: 0 0 18px;
  font-weight: 700;
	font-size: 30px;
}

/* CTA matches your site CTA styling */
.hero__cta{
  display:inline-block;
  background:#00adef;
  color:#fff;
  padding:10px 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  letter-spacing:.02em;
}

.hero__cta:hover,
.hero__cta:focus-visible{
  filter: brightness(.95);
}

.hero__rating{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
  font-weight: 700;
}

.hero__rating-text{
  opacity: 0.95;
}

.hero__stars{
  color: #d4af37; /* gold */
  letter-spacing: 2px;
  font-size: 18px;
  line-height: 1;
}



/* Full-width quiz banner */
.quiz-banner{
  background:#00adef;
  color:#fff;
  width:100vw;
  margin-left:calc(50% - 50vw);  /* break out of container */
  margin-right:calc(50% - 50vw);
  padding: 14px 0;
}

.quiz-banner__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

/* Text inside */
.quiz-banner .quiz-date,
.quiz-banner .quiz-countdown{
  margin:0;
  color:#fff;
  font-weight:700;
}

/* Countdown align right on desktop */
.quiz-banner__countdown{
  text-align:right;
}

/* Mobile: stack if needed */
@media (max-width: 900px){
  .quiz-banner__inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .quiz-banner__countdown{
    text-align:left;
    width:100%;
  }
}

/* Quizzes template section */
.quizzes {
  padding: 10px 0 0;
}

.quizzes__title {
  text-align: center;
  margin: 0 0 28px;
}

.quizzes__grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Card */
.quiz-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  text-align: center;
}

.quiz-card__image-link {
  display: inline-block;
  text-decoration: none;
}

/* Featured image as a circle */
.quiz-card__image {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
}

/* Placeholder if no featured image */
.quiz-card__image,
.quiz-card__image--placeholder {
  width: 220px;        /* was 160px */
  height: 220px;       /* was 160px */
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;  /* reduced gap before title */
}

.quiz-card__title {
  margin: 0 0 8px;   /* slightly tighter than before */
}

.quiz-card__title a {
  color: inherit;
  text-decoration: none;
}

.quiz-card__title a:hover,
.quiz-card__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.quiz-card__excerpt {
  margin: 0 0 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* CTA button */
.quiz-card__cta {
  display: inline-block;
  background: #00adef;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px; /* semi-circle ends */
  text-decoration: none;
  font-weight: 700;
}

.quiz-card__cta:hover,
.quiz-card__cta:focus-visible {
  filter: brightness(0.95);
}

/* Gradient info box (shared by PayPal + Contact forms) */
.info-box--gradient{
  border: none;
  background: linear-gradient(
    90deg,
    var(--header-grad-a),
    var(--header-grad-b)
  );
  padding: 24px 18px;
  color: #ffffff;
}

/* Optional centering helper */
.info-box--center{
  text-align: center;
}

/* Headings inside gradient box */
.info-box--gradient h2,
.info-box--gradient h3{
  color: #ffffff;
}

/* Contact Form 7 inputs inside gradient box */
.info-box--gradient .wpcf7 input[type="text"],
.info-box--gradient .wpcf7 input[type="email"],
.info-box--gradient .wpcf7 input[type="tel"],
.info-box--gradient .wpcf7 textarea{
  background: #ffffff;
  color: #000000;
}

/* Placeholder contrast */
.info-box--gradient .wpcf7 ::placeholder{
  color: rgba(0,0,0,.55);
}

/* CF7 validation + messages */
.info-box--gradient .wpcf7-not-valid-tip,
.info-box--gradient .wpcf7-response-output{
  color: #ffffff;
  border-color: rgba(255,255,255,.5);
}

/* Submit button already matches your CTA, just ensure contrast */
.info-box--gradient .wpcf7 input[type="submit"]{
  background: #ffffff;
  color: #00adef;
}

/* CF7 acceptance text on gradient backgrounds */
.info-box--gradient .wpcf7-acceptance label,
.info-box--gradient .wpcf7-acceptance label *{
  color: #ffffff;
}

/* File input tweak */
.info-box--gradient .wpcf7-form input[type="file"]{
  padding: 10px;
}

/* Validation messages readable on gradient */
.info-box--gradient .wpcf7-not-valid-tip,
.info-box--gradient .wpcf7-response-output{
  color: #fff;
}

/* Recent results: use the same visual language as info-boxes */
.recent-results-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 14px 0 26px;
}

.recent-result-card{
  border: 1px solid #00adef; /* uses your existing info-box look */
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}

.recent-result-card__title{
  margin: 0 0 6px;
}

.recent-result-card__title a{
  text-decoration: none;
  color: inherit;
}

.recent-result-card__meta{
  margin: 0 0 14px;
  opacity: .75;
  font-size: 14px;
}

/* Recent quiz top 5 scores */
.recent-result-card__scores{
  margin: 0;
  padding: 0;
  padding-inline-start: 0;
}

.recent-result-card__scores li{
  margin: 0;
  font-size: 14px;
}

/* Contact Form 7 (compact, matches site CTAs) */
.wpcf7 form{max-width:720px;margin:0 auto}
.wpcf7 .wpcf7-form-control-wrap{display:block;margin: 0 0 1px;}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea{
  width:100%;box-sizing:border-box;
  padding:12px 14px;border-radius:12px;
  border:1px solid rgba(0,0,0,.14);background:#fff;
  font:inherit;line-height:1.4;outline:0
}
.wpcf7 textarea{min-height:160px;resize:vertical}
.wpcf7 input:focus,
.wpcf7 textarea:focus{border-color:#00adef;box-shadow:0 0 0 4px rgba(0,173,239,.18)}
.wpcf7 ::placeholder{color:rgba(0,0,0,.55)}

.wpcf7 .wpcf7-acceptance{margin:6px 0 14px}
.wpcf7 .wpcf7-acceptance label{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;color:rgba(0,0,0,.78)}
.wpcf7 .wpcf7-acceptance input[type="checkbox"]{margin-top:3px;width:18px;height:18px;accent-color:#00adef}
.wpcf7 .wpcf7-acceptance a{text-decoration:underline;text-underline-offset:4px}

.wpcf7 input[type="submit"]{
  background:#00adef;color:#fff;
  padding:10px 18px;border-radius:999px;border:0;
  cursor:pointer;font-weight:700;font-size:14px;letter-spacing:.02em;line-height:1
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus-visible{filter:brightness(.95)}
.wpcf7 input[type="submit"]:focus-visible{outline:2px solid rgba(0,0,0,.25);outline-offset:2px}

.wpcf7-not-valid-tip{font-size:12.5px;margin-top:6px}
.wpcf7-response-output{margin:16px 0 0;border-radius:12px;padding:12px 14px;font-size:13px}

/* Footer (match header styling) */
.site-footer{
  color: var(--text);
  background: linear-gradient(90deg, var(--header-grad-a), var(--header-grad-b));
}

.site-footer__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__top .site-footer__inner{
  padding-top: 22px;
  padding-bottom: 22px;
}

/* Logo */
.site-footer__logo-link{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.site-footer .custom-logo{
  display: block;
  height: 40px; /* adjust for footer */
  width: auto;
}

 .site-footer__brand img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 12px; /* adjust corner roundness if needed */
  display: block;
}

.site-footer__site-name{
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 16px;
}

/* Center copyright */
.site-footer__copyright{
  flex: 1;
  text-align: center;
}
.site-footer__copyright p{
  margin: 0;
  font-weight: 100;
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

/* Social icons right */
.site-footer__social{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.icon-link{
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.icon-link:hover,
.icon-link:focus-visible{
  background: rgba(255,255,255,.18);
  outline: none;
}

/* Faint divider line */
.site-footer__divider{
  height: 1px;
  background: rgba(255,255,255,.22);
}

/* Bottom links row */
.site-footer__inner--bottom{
  padding-top: 14px;
  padding-bottom: 18px;
  align-items: flex-start;
}

.site-footer__links{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.site-footer__links a,
.site-footer__credit a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-footer__links a:hover,
.site-footer__credit a:hover,
.site-footer__links a:focus-visible,
.site-footer__credit a:focus-visible{
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-footer__credit{
  margin-left: auto;
}


/* Quizzes grid: force 2 columns on tablet widths */
@media (min-width: 901px) and (max-width: 1200px){
  .quizzes__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 900px){
  .site-header__toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Off-canvas panel */
  .site-nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(var(--nav-w), 86vw);
    padding: 0px 22px 22px;
   background: linear-gradient(
    90deg,
    var(--header-grad-a),
    var(--header-grad-b)
  );
    transform: translateX(110%);
    transition: transform 260ms ease;
    z-index: 1000;
    box-shadow: -18px 0 40px rgba(0,0,0,.35);
  }

  /* Position the close button inside the panel */
  .site-nav__close{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 18px;
    right: 16px;
  }

  .site-nav__list{
    flex-direction: column;
    gap: 14px;
  }
  .site-nav__list a{
    font-size: 16px;
    display: inline-block;
    padding: 10px 8px;
  }

  /* When open */
  .nav-is-open .site-nav{ transform: translateX(0); }
	 .cta-desktop{
    display: none;
  }
  .cta-mobile{
    display: inline;
  }
	.site-header__inner{
    flex-wrap: wrap;
  }

  .site-header__brand{
    order: 1;
  }

  .site-header__toggle{
    order: 2;
  }

  .site-header__cta{
    order: 3;
    width: 100%;
    margin: 12px 0 0;
    justify-content: center;
    display: flex;
  }
	  .site-main__inner {
    padding: 32px var(--pad-x);
  }

  .page-layout{
    flex-direction: column;
  }
  .page-layout__main,
  .page-layout__info{
    flex: 0 0 auto;
    width: 100%;
  }
	
  .quizzes__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
	
	.store-badges{
    justify-content: center; /* center the row */
    gap: 8px;                /* slightly closer together */
  }

  .store-badge{
    flex: 0 1 auto;          /* don’t stretch full width */
  }

  .store-badge img{
    max-width: 200px;        /* slightly smaller on mobile */
  }
	
	  .wpcf7 form {
    max-width: 100%;
  }
	
  /* ===== Footer: mobile rows ===== */

  /* Stack the TOP footer area into rows */
  .site-footer__top .site-footer__inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  /* Logo row */
  .site-footer__brand{
    width: 100%;
    display: flex;
    justify-content: center;
    order: 1;
  }

  /* Social icons row (its own row) */
  .site-footer__social{
    width: 100%;
    display: flex;
    justify-content: center;
    order: 2;
  }

  /* Copyright row beneath icons */
  .site-footer__copyright{
    width: 100%;
    text-align: center;
    order: 3;
  }

  /* Bottom footer links/credit stacked */
  .site-footer__inner--bottom{
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .site-footer__credit{
    margin-left: 0;
  }
	
	/* Fix iOS video stacking */
.hero{
  position: relative;
  overflow: hidden;
	height: 520px;
}

.hero__media{
  z-index: 0;
}

.hero__overlay{
  z-index: 1;
}

.hero__content{
  position: relative;
  z-index: 2; /* ensure text + CTA always on top */
}
	  .hero{
    height: 520px;
  }
	.hero__stars{
    font-size: 16px;
    letter-spacing: 1.5px;
  }
	
	/* iPhone/Safari: keep PayPal embed contained */
.info-box--payment{
  overflow: hidden; /* clips any internal overflow */
}

.info-box--payment #paypal-container-K3JB3E3QS87PN{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* If PayPal injects iframes/buttons, force them to shrink to the container */
.info-box--payment #paypal-container-K3JB3E3QS87PN iframe,
.info-box--payment #paypal-container-K3JB3E3QS87PN > *{
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}
	.recent-results-grid{
    grid-template-columns: 1fr;
  }
}