/*
Theme Name: TutorGlow
Theme URI: https://tutorglow.in
Author: TutorGlow
Description: Custom theme for tutorglow.in. Clean K-12 learning design: homepage, header, footer and content templates. Ported from the React redesign.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tutorglow
*/

/* ------------------------------------------------------------
   1. Tokens & base
------------------------------------------------------------ */
:root {
	--navy-950: #09172e;
	--navy-900: #0f2547;
	--navy-800: #163362;
	--teal-50: #f0fdfa;
	--teal-400: #2dd4bf;
	--teal-600: #0d9488;
	--teal-700: #0f766e;
	--teal-800: #115e59;
	--gold-400: #fbbf24;
	--gold-500: #f59e0b;
	--gold-600: #d97706;
	--slate-50: #f8fafc;
	--slate-100: #f1f5f9;
	--slate-200: #e2e8f0;
	--slate-300: #cbd5e1;
	--slate-400: #94a3b8;
	--slate-500: #64748b;
	--slate-600: #475569;
	--slate-700: #334155;
	--emerald-600: #059669;
	--emerald-700: #047857;
	--rose-500: #f43f5e;
	--rose-600: #e11d48;
	--font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-2xl: 20px;
	--container: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--navy-900);
	background: #fff;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

body.tg-no-scroll { overflow: hidden; }

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); margin: 0; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; }

::selection { background: #ccfbf1; color: #0f172a; }

.tg-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .tg-container { padding: 0 1.5rem; } }

.tg-sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.tg-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--navy-900); color: #fff; padding: 8px 16px;
	border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.tg-skip:focus { top: 12px; }

.tg-icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.tg-icon--md { width: 1.25rem; height: 1.25rem; }
.tg-icon--lg { width: 1.5rem; height: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ------------------------------------------------------------
   2. Buttons
------------------------------------------------------------ */
.tg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 48px; padding: 0.75rem 1.5rem;
	border: 1px solid transparent; border-radius: var(--radius-lg);
	font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.tg-btn--sm { min-height: 42px; padding: 0.5rem 1rem; }
.tg-btn--block { width: 100%; margin-top: 0.5rem; min-height: 46px; font-size: 1rem; }
.tg-btn--navy { background: var(--navy-900); color: #fff; }
.tg-btn--navy:hover { background: var(--navy-800); }
.tg-btn--gold { background: var(--gold-500); color: var(--navy-950); font-weight: 700; }
.tg-btn--gold:hover { background: var(--gold-400); }
.tg-btn--teal { background: var(--teal-700); color: #fff; }
.tg-btn--teal:hover { background: var(--teal-600); }
.tg-btn--outline-teal { background: rgba(240, 253, 250, .7); border-color: var(--teal-600); color: var(--teal-800); }
.tg-btn--outline-teal:hover { background: var(--teal-600); color: #fff; }
.tg-btn--outline { background: #fff; border-color: var(--slate-300); color: var(--navy-900); }
.tg-btn--outline:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.tg-btn--outline-light { border-color: rgba(255, 255, 255, .25); color: #fff; }
.tg-btn--outline-light:hover { background: rgba(255, 255, 255, .1); }
.tg-btn--ghost { background: #fff; border-color: var(--slate-300); color: var(--slate-700); font-size: 0.75rem; }
.tg-btn--ghost:hover { background: var(--slate-100); }
.tg-btn[hidden] { display: none; }

/* ------------------------------------------------------------
   3. Header
------------------------------------------------------------ */
.tg-header {
	position: sticky; top: 0; z-index: 40; width: 100%;
	background: #fff; box-shadow: 0 1px 0 0 rgba(15, 37, 71, .08);
}
.admin-bar .tg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tg-header { top: 46px; } }

.tg-topbar { display: none; background: var(--navy-900); color: var(--slate-300); font-size: 0.75rem; }
@media (min-width: 1024px) { .tg-topbar { display: block; } }
.tg-topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.tg-topbar__right { display: flex; align-items: center; gap: 1rem; }
.tg-topbar a { color: var(--slate-200); text-decoration: none; }
.tg-topbar a:hover { color: #fff; }
.tg-topbar__divider { width: 1px; height: 14px; background: rgba(255, 255, 255, .2); }

.tg-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 64px;
}
@media (min-width: 1024px) { .tg-header__bar { height: 72px; } }

.tg-logo { display: flex; align-items: center; flex-shrink: 0; border-radius: 8px; }
.tg-logo img { height: 40px; width: auto; }
@media (min-width: 640px) { .tg-logo img { height: 44px; } }
@media (min-width: 1024px) { .tg-logo img { height: 48px; } }

.tg-nav { display: none; }
@media (min-width: 1024px) { .tg-nav { display: block; } }
.tg-nav__list { display: flex; align-items: center; gap: 1.75rem; }
.tg-nav__list a {
	position: relative; display: block; padding: 0.5rem 0;
	font-size: 15px; font-weight: 500; color: var(--slate-700);
	text-decoration: none; white-space: nowrap; transition: color .15s;
}
.tg-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
	background: var(--teal-600); transform: scaleX(0); transform-origin: left; transition: transform .15s;
}
.tg-nav__list a:hover { color: var(--navy-900); }
.tg-nav__list a:hover::after,
.tg-nav__list .current-menu-item > a::after,
.tg-nav__list .current_page_item > a::after { transform: scaleX(1); }
.tg-nav__list .current-menu-item > a,
.tg-nav__list .current_page_item > a { color: var(--navy-900); font-weight: 600; }

.tg-header__actions { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }

.tg-btn-search {
	display: inline-flex; align-items: center; gap: 0.5rem; height: 44px; padding: 0 0.75rem;
	border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
	background: var(--slate-50); color: var(--slate-700);
	font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}
.tg-btn-search .tg-icon { color: var(--teal-700); }
.tg-btn-search:hover { border-color: rgba(13, 148, 136, .4); background: rgba(240, 253, 250, .7); color: var(--navy-900); }

.tg-hide-sm { display: none; }
@media (min-width: 640px) { .tg-hide-sm { display: inline; } }
.tg-hide-xs { display: none; }
@media (min-width: 640px) { .tg-hide-xs { display: inline-flex; } }

.tg-menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
	background: #fff; color: var(--navy-900); cursor: pointer;
}
.tg-menu-toggle:hover { background: var(--slate-50); }
.tg-menu-toggle .tg-icon { width: 1.25rem; height: 1.25rem; }
.tg-menu-toggle__close { display: none; }
.tg-menu-toggle.is-open .tg-menu-toggle__open { display: none; }
.tg-menu-toggle.is-open .tg-menu-toggle__close { display: inline-flex; }
@media (min-width: 1024px) { .tg-menu-toggle { display: none; } }

.tg-mobile-nav {
	border-top: 1px solid var(--slate-200); background: #fff;
	padding: 1.25rem 1rem; box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
	max-height: calc(100vh - 64px); overflow-y: auto;
}
.tg-mobile-nav[hidden] { display: none; }
@media (min-width: 1024px) { .tg-mobile-nav { display: none !important; } }

.tg-mobile-nav__search { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.tg-mobile-nav__search input {
	flex: 1; height: 44px; padding: 0 0.875rem; min-width: 0;
	border: 1px solid var(--slate-300); border-radius: var(--radius-lg); background: var(--slate-50);
	font-family: var(--font-body); font-size: 0.875rem; color: var(--navy-900);
}
.tg-mobile-nav__search input:focus { border-color: var(--teal-600); background: #fff; outline: none; }
.tg-mobile-nav__search button {
	width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; cursor: pointer;
}
.tg-mobile-nav__list { display: flex; flex-direction: column; gap: 0.25rem; }
.tg-mobile-nav__list a {
	display: flex; align-items: center; min-height: 44px; padding: 0 0.875rem;
	border-radius: var(--radius-lg); font-size: 1rem; font-weight: 500; color: #1e293b; text-decoration: none;
}
.tg-mobile-nav__list a:hover { background: var(--slate-50); color: var(--navy-900); }
.tg-mobile-nav__list .current-menu-item > a,
.tg-mobile-nav__list .current_page_item > a { background: var(--teal-50); color: var(--teal-800); font-weight: 600; }
.tg-mobile-nav__social {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--slate-100);
	font-size: 0.75rem; font-weight: 500; color: var(--slate-500);
}

/* Social icons */
.tg-social { display: flex; align-items: center; gap: 0.375rem; }
.tg-social a {
	display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.tg-social--light a { width: 32px; height: 32px; border-radius: 6px; color: var(--slate-200); }
.tg-social--light a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tg-social--dark a { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--slate-200); color: var(--slate-600); }
.tg-social--dark a:hover { border-color: rgba(13, 148, 136, .4); background: var(--teal-50); color: var(--teal-700); }

/* Search modal */
.tg-search-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 1rem 1rem; }
.tg-search-modal[hidden] { display: none; }
.tg-search-modal__backdrop { position: absolute; inset: 0; background: rgba(9, 23, 46, .55); }
.tg-search-modal__panel {
	position: relative; width: 100%; max-width: 560px; background: #fff;
	border-radius: var(--radius-2xl); padding: 1.5rem; box-shadow: 0 25px 50px rgba(0, 0, 0, .25);
}
.tg-search-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tg-search-modal__head h2 { font-size: 1.125rem; font-weight: 700; }
.tg-search-modal__head button {
	width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 10px; background: transparent; color: var(--slate-600); cursor: pointer;
}
.tg-search-modal__head button:hover { background: var(--slate-100); }
.tg-search-modal form { display: flex; gap: 0.5rem; }
.tg-search-modal input[type="search"] {
	flex: 1; min-width: 0; height: 48px; padding: 0 1rem;
	border: 1px solid var(--slate-300); border-radius: var(--radius-lg); background: var(--slate-50);
	font-family: var(--font-body); font-size: 1rem; color: var(--navy-900);
}
.tg-search-modal input[type="search"]:focus { border-color: var(--teal-600); background: #fff; outline: none; }
.tg-search-modal__hint { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--slate-500); }

/* ------------------------------------------------------------
   4. Homepage sections
------------------------------------------------------------ */
.tg-eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: .02em; color: var(--teal-700); }
.tg-eyebrow--caps { font-size: 0.75rem; text-transform: uppercase; }
.tg-eyebrow--gold { color: var(--gold-400); }

/* Hero */
.tg-hero {
	border-bottom: 1px solid rgba(226, 232, 240, .8);
	background: linear-gradient(to bottom, var(--slate-50), #fff 50%, #fff);
}
.tg-hero__grid { display: grid; gap: 2.5rem; align-items: center; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .tg-hero__grid { padding-top: 4rem; padding-bottom: 4rem; } }
@media (min-width: 1024px) {
	.tg-hero__grid { grid-template-columns: 1fr 1fr; gap: 3rem; padding-top: 5rem; padding-bottom: 5rem; }
}
.tg-hero h1 {
	margin-top: 0.75rem; font-size: 2.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
	text-wrap: balance;
}
@media (min-width: 640px) { .tg-hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .tg-hero h1 { font-size: 3.25rem; line-height: 1.12; } }
.tg-hero__lead { margin-top: 1.25rem; max-width: 36rem; font-size: 1rem; line-height: 1.7; color: var(--slate-600); }
@media (min-width: 640px) { .tg-hero__lead { font-size: 1.125rem; } }
.tg-hero__cta { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 2rem; }
@media (min-width: 640px) { .tg-hero__cta { flex-direction: row; flex-wrap: wrap; align-items: center; } }
.tg-hero__boards {
	margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(226, 232, 240, .8);
	font-size: 0.75rem; font-weight: 500; color: var(--slate-500);
}
@media (min-width: 640px) { .tg-hero__boards { font-size: 0.875rem; } }
.tg-hero__boards strong { color: var(--navy-900); font-weight: 500; }

.tg-media-frame {
	overflow: hidden; border: 1px solid var(--slate-200); border-radius: var(--radius-2xl);
	background: var(--slate-50); box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.tg-media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tg-media-frame--dark { border-color: rgba(255, 255, 255, .15); background: var(--navy-950); }

/* Generic section */
.tg-section { padding: 3.5rem 0; background: #fff; }
@media (min-width: 640px) { .tg-section { padding: 5rem 0; } }
.tg-section--tint { background: rgba(248, 250, 252, .8); }
.tg-section--bordered { border-top: 1px solid rgba(226, 232, 240, .8); }
.tg-section__head { max-width: 42rem; }
.tg-section__head h2 {
	margin-top: 0.5rem; font-size: 1.875rem; font-weight: 700; letter-spacing: -.01em; text-wrap: balance;
}
@media (min-width: 640px) { .tg-section__head h2 { font-size: 2.25rem; } }
.tg-section__head > p:not(.tg-eyebrow) { margin-top: 0.75rem; line-height: 1.7; color: var(--slate-600); }
.tg-section__row { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .tg-section__row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.tg-section__aside { max-width: 28rem; font-size: 0.875rem; line-height: 1.7; color: var(--slate-600); }
@media (min-width: 640px) { .tg-section__aside { font-size: 1rem; } }

/* Cards & grids */
.tg-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.tg-grid--subjects { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tg-grid--subjects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tg-grid--subjects { grid-template-columns: repeat(3, 1fr); } }
.tg-grid--explore { grid-template-columns: 1fr; }
@media (min-width: 768px) { .tg-grid--explore { grid-template-columns: repeat(2, 1fr); } }
.tg-grid--pillars { grid-template-columns: 1fr; margin-top: 0; }
@media (min-width: 640px) { .tg-grid--pillars { grid-template-columns: repeat(2, 1fr); } }
.tg-grid--results { grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 640px) { .tg-grid--results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tg-grid--results { grid-template-columns: repeat(3, 1fr); } }

.tg-card {
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 1.5rem; border: 1px solid var(--slate-200); border-radius: var(--radius-2xl);
	background: #fff; text-decoration: none; color: inherit;
	transition: transform .15s, border-color .15s, box-shadow .15s, background-color .15s;
}
.tg-card--subject:hover { transform: translateY(-2px); border-color: rgba(13, 148, 136, .5); box-shadow: 0 8px 20px rgba(15, 37, 71, .08); }
.tg-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tg-card__meta { font-size: 0.75rem; font-weight: 500; color: var(--slate-500); }
.tg-card h3 { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 700; transition: color .15s; }
.tg-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.7; color: var(--slate-600); }
.tg-card .tg-card__topics { margin-top: 1rem; font-size: 0.75rem; color: var(--slate-500); }
.tg-card--subject:hover h3 { color: var(--teal-700); }
.tg-card__foot {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--slate-100);
	font-size: 0.875rem; font-weight: 600; color: var(--navy-900); transition: color .15s;
}
.tg-card__foot .tg-icon { transition: transform .15s; }
.tg-card--subject:hover .tg-card__foot { color: var(--teal-700); }
.tg-card--subject:hover .tg-card__foot .tg-icon { transform: translateX(4px); }

.tg-icon-box {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: var(--radius-lg);
}
.tg-tone--navy { background: rgba(15, 37, 71, .08); color: var(--navy-900); }
.tg-tone--teal { background: rgba(13, 148, 136, .12); color: var(--teal-700); }
.tg-tone--gold { background: rgba(245, 158, 11, .15); color: #b45309; }
.tg-tone--indigo { background: rgba(3, 105, 161, .1); color: #075985; }
.tg-tone--emerald { background: rgba(5, 150, 105, .12); color: var(--emerald-700); }
.tg-icon-box--navy { width: 44px; height: 44px; background: var(--navy-900); color: #fff; transition: background-color .15s; }

/* Explore cards */
.tg-card--explore { background: rgba(248, 250, 252, .5); }
.tg-card--explore:hover { border-color: rgba(13, 148, 136, .5); background: #fff; }
.tg-card--explore:hover .tg-icon-box--navy { background: var(--teal-700); }
.tg-card__title-row { display: flex; align-items: center; gap: 0.875rem; }
.tg-card--explore h3 { margin-top: 0; }
.tg-card--explore > div:first-child > p:first-of-type { margin-top: 1rem; }
@media (min-width: 640px) { .tg-card--explore > div:first-child > p:first-of-type { font-size: 1rem; } }
.tg-card--explore .tg-card__topics { margin-top: 0.75rem; font-weight: 500; }
.tg-card__cta {
	display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem;
	font-size: 0.875rem; font-weight: 600; color: var(--teal-700); transition: color .15s;
}
.tg-card__cta .tg-icon { transition: transform .15s; }
.tg-card--explore:hover .tg-card__cta { color: var(--navy-900); }
.tg-card--explore:hover .tg-card__cta .tg-icon { transform: translateX(4px); }

/* Sample question */
.tg-sampler { margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--slate-200); border-radius: var(--radius-2xl); background: #fff; }
@media (min-width: 640px) { .tg-sampler { padding: 2rem; } }
.tg-sampler__head {
	display: flex; flex-direction: column; gap: 1.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--slate-200);
}
@media (min-width: 1024px) { .tg-sampler__head { flex-direction: row; align-items: center; justify-content: space-between; } }
.tg-sampler__head h3 { font-size: 1.25rem; font-weight: 700; }
.tg-sampler__head p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--slate-600); }
.tg-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: var(--radius-lg); background: var(--slate-100); }
.tg-tab {
	min-height: 38px; padding: 6px 14px; border: 0; border-radius: 8px; background: transparent;
	font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; color: var(--slate-700);
	white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s;
}
@media (min-width: 640px) { .tg-tab { font-size: 0.875rem; } }
.tg-tab:hover { background: rgba(255, 255, 255, .7); color: var(--navy-900); }
.tg-tab.is-active { background: var(--navy-900); color: #fff; }

.tg-sampler__body { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 1024px) { .tg-sampler__body { grid-template-columns: 7fr 5fr; align-items: start; } }
.tg-sampler__q { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--navy-900); }
@media (min-width: 640px) { .tg-sampler__q { font-size: 1.25rem; } }
.tg-options { display: grid; grid-template-columns: 1fr; gap: 0.625rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .tg-options { grid-template-columns: repeat(2, 1fr); } }
.tg-option {
	display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
	min-height: 46px; padding: 0.625rem 1rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
	background: var(--slate-50); color: var(--navy-900); text-align: left;
	font-family: var(--font-body); font-size: 0.875rem; cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.tg-option:hover { border-color: rgba(13, 148, 136, .5); background: rgba(240, 253, 250, .5); }
.tg-option.is-correct { border-color: var(--emerald-600); background: #ecfdf5; color: #022c22; font-weight: 600; }
.tg-option.is-correct .tg-icon { color: var(--emerald-700); }
.tg-option.is-wrong { border-color: var(--rose-500); background: #fff1f2; color: #4c0519; }
.tg-option.is-wrong .tg-icon { color: var(--rose-600); }
.tg-option.is-dim { border-color: var(--slate-200); background: #fff; color: var(--slate-400); }

.tg-sampler__panel {
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 1.25rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--slate-50);
}
.tg-sampler__panel p { font-size: 0.875rem; line-height: 1.7; color: var(--slate-600); }
.tg-sampler__panel .tg-sampler__panel-title { font-weight: 600; color: var(--navy-900); }
.tg-sampler__panel #tg-sampler-feedback > p:last-child { margin-top: 0.375rem; }
.tg-feedback__row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; }
.tg-feedback__row .tg-icon { width: 1.25rem; height: 1.25rem; }
.tg-feedback__row.is-good { color: #065f46; }
.tg-feedback__row.is-bad { color: #9f1239; }
.tg-feedback__text { margin-top: 0.625rem; color: var(--slate-700) !important; }
.tg-sampler__actions {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
	margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--slate-200);
}
.tg-noscript { margin-top: 1rem; font-size: 0.875rem; color: var(--slate-600); }

/* Why choose */
.tg-why { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .tg-why { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.tg-why__intro h2 {
	margin-top: 0.5rem; font-size: 1.875rem; font-weight: 700; letter-spacing: -.01em; text-wrap: balance;
}
@media (min-width: 640px) { .tg-why__intro h2 { font-size: 2.25rem; } }
.tg-why__intro > p:not(.tg-eyebrow) { margin-top: 1rem; line-height: 1.7; color: var(--slate-600); }
.tg-why__intro .tg-btn { margin-top: 1.75rem; min-height: 44px; padding: 0.625rem 1.25rem; }
.tg-card--pillar { justify-content: flex-start; }
.tg-pillar__num { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: var(--gold-600); font-variant-numeric: tabular-nums; }
.tg-card--pillar h3 { margin-top: 0.5rem; font-size: 1.125rem; }

/* Spotlight */
.tg-spotlight { overflow: hidden; border-radius: 1.5rem; background: var(--navy-900); color: #fff; }
.tg-spotlight__grid { display: grid; gap: 2rem; align-items: center; padding: 1.5rem; }
@media (min-width: 640px) { .tg-spotlight__grid { padding: 2.5rem; } }
@media (min-width: 1024px) { .tg-spotlight__grid { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem; } }
.tg-spotlight h2 { margin-top: 0.5rem; color: #fff; font-size: 1.875rem; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 640px) { .tg-spotlight h2 { font-size: 2.25rem; } }
.tg-spotlight__lead { margin-top: 1rem; line-height: 1.7; color: var(--slate-200); }
.tg-bullets { margin-top: 1.5rem; display: grid; gap: 0.625rem; font-size: 0.875rem; color: var(--slate-200); }
.tg-bullets li { position: relative; padding-left: 1.125rem; }
.tg-bullets li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); }
.tg-spotlight__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }

/* ------------------------------------------------------------
   5. Inner pages (page.php, single.php, index.php, 404)
------------------------------------------------------------ */
.tg-page { padding-top: 2.5rem; padding-bottom: 4rem; }
.tg-page--center { text-align: center; padding-top: 5rem; }
.tg-page--center p { margin-top: 1rem; color: var(--slate-600); }
.tg-page--center .tg-btn { margin: 0 0.25rem; }
.tg-page__header { margin-bottom: 1.5rem; }
.tg-page__header h1, .tg-page--center h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
@media (min-width: 640px) { .tg-page__header h1, .tg-page--center h1 { font-size: 2.5rem; } }

.tg-article { max-width: 52rem; margin: 0 auto; }
.tg-content { font-size: 1.0625rem; line-height: 1.75; color: #1e293b; }
.tg-content > * + * { margin-top: 1.25rem; }
.tg-content h2, .tg-content h3, .tg-content h4 { margin-top: 2rem; line-height: 1.3; }
.tg-content a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.tg-content img { border-radius: var(--radius-lg); }
.tg-content ul { list-style: disc; padding-left: 1.5rem; }
.tg-content ol { list-style: decimal; padding-left: 1.5rem; }
.tg-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.tg-content th, .tg-content td { padding: 0.5rem 0.75rem; border: 1px solid var(--slate-200); text-align: left; }

.tg-card--result { justify-content: flex-start; gap: 0.5rem; }
.tg-card--result:hover { border-color: rgba(13, 148, 136, .5); box-shadow: 0 8px 20px rgba(15, 37, 71, .08); }
.tg-card--result h2 { font-size: 1.125rem; font-weight: 700; }
.tg-card--result .tg-card__cta { margin-top: auto; padding-top: 0.75rem; }

.navigation.pagination { margin-top: 2rem; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.navigation.pagination .page-numbers {
	min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	padding: 0 0.75rem; border: 1px solid var(--slate-200); border-radius: 10px; text-decoration: none; font-weight: 600;
}
.navigation.pagination .page-numbers.current { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.tg-inline-promo {
	display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; padding: 1.25rem 1.5rem;
	border: 1px solid #fde68a; border-radius: var(--radius-xl); background: #fffbeb;
}
@media (min-width: 640px) { .tg-inline-promo { flex-direction: row; align-items: center; justify-content: space-between; } }
.tg-inline-promo strong { display: block; font-family: var(--font-display); color: var(--navy-900); }
.tg-inline-promo span { font-size: 0.875rem; color: var(--slate-600); }

/* ------------------------------------------------------------
   6. Footer
------------------------------------------------------------ */
.tg-footer { border-top: 1px solid #1e293b; background: var(--navy-950); color: var(--slate-300); }
.tg-footer__inner { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .tg-footer__inner { padding-top: 4rem; padding-bottom: 4rem; } }
.tg-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .tg-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tg-footer__grid { grid-template-columns: 4fr 3fr 2fr 3fr; } }
.tg-footer__logo { display: inline-block; padding: 8px 12px; border-radius: var(--radius-lg); background: #fff; }
.tg-footer__logo img { height: 36px; width: auto; }
.tg-footer__brand > p { margin: 1rem 0 1.25rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.7; }
.tg-footer__heading { font-size: 0.875rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.tg-footer__list { margin-top: 1rem; display: grid; gap: 0.625rem; font-size: 0.875rem; }
.tg-footer__list a { color: var(--slate-300); text-decoration: none; transition: color .15s; }
.tg-footer__list a:hover { color: #fff; }
.tg-footer a.tg-footer__accent { color: var(--gold-400); font-weight: 500; }
.tg-footer a.tg-footer__accent:hover { color: #fcd34d; }
.tg-footer__grid > div:not(.tg-footer__brand) > p { margin-top: 1rem; font-size: 0.875rem; }
.tg-footer__mail {
	display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem;
	font-size: 0.875rem; font-weight: 600; color: var(--teal-400); text-decoration: none;
}
.tg-footer__mail:hover { color: #5eead4; }
.tg-footer__bottom {
	display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
	margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 0.75rem; color: var(--slate-400);
}
@media (min-width: 640px) { .tg-footer__bottom { flex-direction: row; align-items: center; } }
.tg-footer__bottom-links { display: flex; align-items: center; gap: 1.25rem; }
.tg-footer__bottom-links a { text-decoration: none; }
.tg-footer__bottom-links a:hover { color: #fff; }


/* ------------------------------------------------------------
   Quiz Maker pages and posts
   Keep the WordPress title out of the way; the authored quiz
   heading remains the visible title. Only the intro image and
   authored top-level headings are centred. Quiz Maker controls
   and question/answer layout are intentionally left untouched.
------------------------------------------------------------ */
.tg-article--quiz {
	max-width: 100%;
}

.tg-article--quiz .tg-content > h1,
.tg-article--quiz .tg-content > h2 {
	text-align: center;
}

.tg-article--quiz .tg-content > h1:has(img) {
	text-align: center;
}

.tg-article--quiz .tg-content > h1:has(img) img {
	display: block;
	float: none !important;
	margin: 1rem auto !important;
	max-width: 100%;
	height: auto;
}

@media (max-width: 639px) {
	.tg-article--quiz .tg-content > h1,
	.tg-article--quiz .tg-content > h2 {
		overflow-wrap: anywhere;
	}
}
