/*
Theme Name: Telenor Quiz Child
Theme URI: https://telenortodayquiz.com/
Description: Custom child theme for Telenor Today Quiz — daily quiz Q&A card layout, FAQ schema, AdSense-ready ad slots. Built on Kadence.
Author: Telenor Today Quiz
Template: kadence
Version: 1.3.10
License: GNU General Public License v2 or later
Text Domain: telenor-quiz-child
*/

:root {
  --ttq-blue: #0090da;
  --ttq-navy: #083b5c;
  --ttq-blue-dark: #006ea6;
  --ttq-sky: #0090da; /* v1.2.0: darkened from #4db8e8 for H1 contrast on white */
  --ttq-green-bg: #ecfdf3;
  --ttq-green-border: #35c779;
  --ttq-green-text: #087a38;
  --ttq-answer-bar-bg: #f7f9fc;
  --ttq-answer-bar-border: #16a34a;
  --ttq-ink: #172033;
  --ttq-muted: #5b6570;
  --ttq-card-border: #e6e8ee;
  --ttq-opt-bg: #f9fafb;
  --ttq-opt-border: #dfe5ec;
  --ttq-opt-text: #344054;
  --ttq-soft-bg: #f2f9fd;
}

body { color: var(--ttq-ink); }
h1, h2, h3, h4, .ttq-q, .ttq-quiz-heading {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

/* ---------- Header (blue band) ---------- */
#masthead, .site-header {
  background: linear-gradient(135deg, var(--ttq-navy) 0%, var(--ttq-blue-dark) 100%) !important;
}
.site-branding .site-title a,
.site-branding .site-title {
  color: #ffffff !important;
}
.site-branding .site-description { color: rgba(255,255,255,.75); }
.main-navigation .menu > li > a,
.site-header .menu li a {
  color: #ffffff !important;
  font-weight: 600;
}
.main-navigation .menu > li.current-menu-item > a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mobile-toggle-open-container .menu-toggle-open,
#masthead .menu-toggle {
  color: #fff !important;
}

/* ---------- Footer (custom blue footer, see footer.php) ---------- */
#colophon, .site-footer { display: none !important; }

.ttq-footer {
  background: linear-gradient(135deg, #062a44 0%, var(--ttq-navy) 100%);
  color: #ffffff;
  margin-top: 40px;
}
.ttq-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 22px 30px;
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr 0.8fr;
  gap: 34px;
}
.ttq-footer-logo { max-width: 220px; height: auto; margin-bottom: 14px; }
.ttq-footer p { color: rgba(255,255,255,.82); font-size: 0.93rem; line-height: 1.75; margin: 0 0 10px; }
.ttq-footer h3 {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 14px;
  text-align: center;
}
.ttq-footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }
.ttq-footer-links li { margin: 0 0 10px; break-inside: avoid; }
.ttq-footer-links a { color: rgba(255,255,255,.88); text-decoration: none; font-size: 0.95rem; }
.ttq-footer-links a:hover { color: var(--ttq-sky); text-decoration: underline; }
.ttq-social { display: flex; gap: 10px; justify-content: flex-start; margin-top: 6px; }
.ttq-social a {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.ttq-social a:hover { background: var(--ttq-blue); }
.ttq-social svg { width: 20px; height: 20px; fill: #ffffff; }
.ttq-footer-bottom {
  background: #ffffff;
  text-align: center;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--ttq-navy);
}
.ttq-footer-bottom a { color: var(--ttq-blue); font-weight: 700; text-decoration: underline; }
@media (max-width: 900px) {
  .ttq-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ttq-footer-grid { grid-template-columns: 1fr; }
  .ttq-footer h3 { text-align: left; }
}

/* ---------- Homepage hero ---------- */
.ttq-home-article .entry-title {
  font-size: 2rem;
  line-height: 1.35;
  font-weight: 800;
  margin: 10px 0 12px;
}
.ttq-hl { color: var(--ttq-sky); }
.ttq-divider {
  width: 74%;
  height: 3px;
  background: var(--ttq-blue);
  border-radius: 2px;
  margin: 14px 0 18px;
}
.ttq-intro { font-size: 1.05rem; line-height: 1.75; }

/* ---------- Blue pill headings ---------- */
.ttq-pill {
  background: var(--ttq-blue);
  border-radius: 15px;
  padding: 12px 22px;
  margin: 30px 0 20px;
  text-align: center;
}
.ttq-pill h2 {
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 1.35rem;
  font-weight: 700;
}
.ttq-section { margin: 34px 0; }
.ttq-section > h2 {
  background: var(--ttq-blue);
  color: #ffffff;
  border-radius: 15px;
  padding: 12px 22px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 30px 0 18px;
}
.ttq-section h3 { font-size: 1.12rem; margin: 20px 0 10px; font-weight: 700; }
.ttq-section p, .ttq-section li { line-height: 1.75; }

/* ---------- Quiz card ---------- */
.ttq-quiz-wrap { margin: 26px 0; }
.ttq-quiz-updated {
  color: var(--ttq-muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
  text-align: center;
}
.ttq-question {
  background: #ffffff;
  border: 1px solid var(--ttq-card-border);
  border-radius: 18px;
  padding: 22px;
  margin: 20px 0;
  box-shadow: 0 2px 12px rgba(8, 59, 92, 0.06);
  transition: box-shadow .2s ease;
}
.ttq-question:hover { box-shadow: 0 6px 22px rgba(8, 59, 92, 0.12); }
.ttq-qhead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.ttq-qnum {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ttq-blue), var(--ttq-navy));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ttq-q {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 4px 0 0;
  line-height: 1.5;
  color: var(--ttq-ink);
}
.ttq-options {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ttq-options li {
  background: var(--ttq-opt-bg);
  border: 1.5px solid var(--ttq-opt-border);
  border-radius: 13px;
  padding: 12px 14px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ttq-opt-text);
  text-align: center;
}
.ttq-options li.ttq-correct {
  background: var(--ttq-green-bg);
  border-color: var(--ttq-green-border);
  color: var(--ttq-green-text);
}
.ttq-answer-bar {
  margin: 0;
  background: var(--ttq-answer-bar-bg);
  border-left: 4px solid var(--ttq-answer-bar-border);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--ttq-ink);
}
.ttq-answer-bar strong {
  color: var(--ttq-green-text);
  font-size: 1.1rem;
}

/* ---------- Table of contents ---------- */
.ttq-toc {
  background: #ffffff;
  border: 1px solid var(--ttq-card-border);
  border-radius: 21px;
  padding: 20px 24px;
  margin: 26px 0;
  box-shadow: 0 0 18px rgba(8, 59, 92, 0.10);
}
.ttq-toc h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; }
.ttq-toc ol { margin: 0; padding-left: 20px; }
.ttq-toc li { margin: 6px 0; font-size: 0.95rem; }
.ttq-toc a { text-decoration: none; color: var(--ttq-blue); font-weight: 600; }
.ttq-toc a:hover { text-decoration: underline; }

/* ---------- Video ---------- */
.ttq-video { margin: 30px 0; }
.ttq-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--ttq-card-border);
}
.ttq-video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- FAQ accordion ---------- */
.ttq-faq { margin: 30px 0; }
.ttq-faq-item {
  background: #fff;
  border: 1px solid var(--ttq-card-border);
  border-bottom: 3px solid var(--ttq-blue);
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}
.ttq-faq-q {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 14px 40px 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ttq-ink);
  position: relative;
  font-family: 'Poppins', Arial, sans-serif;
}
.ttq-faq-q::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--ttq-blue);
}
.ttq-faq-item.open .ttq-faq-q::after { content: "▴"; }
.ttq-faq-a { display: none; padding: 2px 18px 16px; font-size: 0.96rem; color: #33414e; line-height: 1.7; }
.ttq-faq-item.open .ttq-faq-a { display: block; }

/* ---------- Ad slots ---------- */
.ttq-ad-slot { margin: 26px auto; text-align: center; clear: both; }
.ttq-ad-slot:empty { display: none; }

/* ---------- Single post extras ---------- */
.ttq-post-meta { color: var(--ttq-muted); font-size: 0.9rem; margin: 6px 0 18px; }
.ttq-date-badge {
  display: inline-block;
  background: var(--ttq-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .ttq-options { grid-template-columns: 1fr; }
  .ttq-question { padding: 18px 16px; }
  /* v1.2.0: tighter hero so the quiz answers sit higher on mobile */
  .ttq-home-article .entry-title { font-size: 1.5rem; margin: 6px 0 8px; }
  .ttq-divider { margin: 10px 0 12px; }
  .ttq-post-meta { margin-bottom: 8px; }
  .ttq-intro { font-size: 0.98rem; line-height: 1.6; }
  .ttq-intro p { margin-bottom: 12px; }
  /* v1.2.0: compact TOC card on mobile */
  .ttq-toc { padding: 14px 16px; margin: 18px 0; }
  .ttq-toc h3 { font-size: 0.98rem; margin-bottom: 6px; }
  .ttq-toc li { margin: 4px 0; font-size: 0.88rem; }
  .ttq-pill h2, .ttq-section > h2 { font-size: 1.15rem; }
}

/* v1.2.5: daily intro line + per-answer explanations */
.ttq-quiz-intro {
  font-size: 1.04rem;
  line-height: 1.65;
  color: #1d2327;
  background: #f0f7fc;
  border-left: 4px solid #0090da;
  padding: 12px 16px;
  margin: 0 0 18px;
  border-radius: 0 8px 8px 0;
}
.ttq-why {
  font-size: 0.92rem;
  color: #50575e;
  margin: 8px 0 0;
  line-height: 1.55;
}


/* ---------- Quiz guide sections (v1.3.0) ---------- */
.ttq-guide-sections { margin-top: 2rem; }
.ttq-guide-sections .ttq-section { margin-bottom: 2.5rem; }
.ttq-guide-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: start;
	margin: 1rem 0;
}
.ttq-guide-img img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0,0,0,.10);
}
.ttq-guide-img-small { margin-top: 1rem; max-width: 480px; }
.ttq-guide-steps h3 { margin: 1rem 0 .4rem; font-size: 1.05rem; }
.ttq-guide-steps h3:first-child { margin-top: 0; }
.ttq-guide-steps ol, .ttq-guide-steps ul { margin: .4rem 0 .8rem 1.2rem; }
.ttq-cat-list {
	columns: 2;
	column-gap: 2rem;
	margin: .6rem 0 .6rem 1.2rem;
}
@media (max-width: 768px) {
	.ttq-guide-grid { grid-template-columns: 1fr; }
	.ttq-cat-list { columns: 1; }
}

/* ---------- Quiz screenshots gallery (v1.3.1) ---------- */
.ttq-quiz-screenshots { margin: 2rem 0; }
.ttq-screenshot-gallery {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
	margin-top: 1rem;
}
.ttq-shot { margin: 0; text-align: center; }
.ttq-shot img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 2px 16px rgba(0,0,0,.10);
	border: 1px solid #e6ebf0;
}
.ttq-shot figcaption {
	margin-top: .4rem;
	font-size: .85rem;
	color: #5b6570;
	font-weight: 600;
}
@media (max-width: 900px) {
	.ttq-screenshot-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
	.ttq-screenshot-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Author card (v1.3.8) ---------- */
.ttq-author-card {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	background: #f4f9fd;
	border: 1px solid #dde9f4;
	border-radius: 14px;
	padding: 1.25rem;
	margin-top: 1rem;
}
.ttq-author-avatar {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 3px solid #0090da;
}
.ttq-author-name { margin: 0 0 .15rem; font-size: 1.3rem; }
.ttq-author-role { margin: 0 0 .6rem; color: #0090da; font-weight: 600; font-size: .95rem; }
.ttq-author-bio { margin: 0 0 .6rem; }
.ttq-author-more { margin: 0; }
.ttq-author-sign { margin-top: .6rem; font-size: .9rem; color: #5b6570; }
@media (max-width: 600px) {
	.ttq-author-card { flex-direction: column; align-items: center; text-align: center; }
}
