/* GradGuru99 Home – all selectors are namespaced with .gg99- to avoid theme clashes.
   Change the brand colours in the variables below. */
.gg99-home {
	--gg-primary: #1d4ed8;      /* main brand colour */
	--gg-primary-dark: #1e3a8a;
	--gg-accent: #f59e0b;
	--gg-ink: #0f172a;
	--gg-muted: #475569;
	--gg-bg: #ffffff;
	--gg-alt: #f1f5f9;
	--gg-border: #e2e8f0;
	--gg-radius: 16px;
	color: var(--gg-ink);
	font-size: 1rem;
	line-height: 1.6;
}
.gg99-home *, .gg99-home *::before, .gg99-home *::after { box-sizing: border-box; }
.gg99-home ul { list-style: none; margin: 0; padding: 0; }
.gg99-home a { text-decoration: none; }
.gg99-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.gg99-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.gg99-hero {
	background: linear-gradient(135deg, var(--gg-primary-dark), var(--gg-primary));
	color: #fff;
	padding: 72px 0 80px;
	text-align: center;
}
.gg99-eyebrow {
	display: inline-block; margin: 0 0 16px; padding: 4px 14px;
	background: rgba(255, 255, 255, .15); border-radius: 999px;
	font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
}
.gg99-hero h1 {
	margin: 0 auto 16px; max-width: 820px; color: #fff;
	font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15;
}
.gg99-lead { margin: 0 auto 28px; max-width: 640px; font-size: 1.1rem; color: #dbeafe; }

.gg99-search {
	display: flex; max-width: 620px; margin: 0 auto 24px;
	background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.gg99-search input[type="search"] {
	flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none;
	padding: 12px 18px; font-size: 1rem; color: var(--gg-ink); outline: none;
}
.gg99-search button {
	border: 0; cursor: pointer; border-radius: 999px; padding: 12px 26px;
	background: var(--gg-accent); color: #111827; font-weight: 700; font-size: 1rem;
}
.gg99-search button:hover { filter: brightness(1.07); }
.gg99-search:focus-within { outline: 3px solid var(--gg-accent); outline-offset: 2px; }

.gg99-audience { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gg99-audience li {
	padding: 4px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: .9rem;
}

/* Sections */
.gg99-section { padding: 64px 0; background: var(--gg-bg); }
.gg99-alt { background: var(--gg-alt); }
.gg99-h2 { margin: 0 0 8px; text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gg-ink); }
.gg99-sub { margin: 0 0 36px; text-align: center; color: var(--gg-muted); }

/* Category cards */
.gg99-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gg99-card {
	--c: var(--gg-primary);
	display: flex; flex-direction: column; height: 100%; padding: 24px;
	background: #fff; border: 1px solid var(--gg-border); border-top: 5px solid var(--c);
	border-radius: var(--gg-radius); color: var(--gg-ink);
	transition: transform .2s ease, box-shadow .2s ease;
}
.gg99-card:hover, .gg99-card:focus-visible {
	transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}
.gg99-card:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.gg99-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; margin-bottom: 14px; font-size: 1.6rem; border-radius: 14px;
	background: color-mix(in srgb, var(--c) 14%, #fff);
}
.gg99-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.gg99-card-desc { flex: 1; color: var(--gg-muted); font-size: .95rem; }
.gg99-card-foot {
	display: flex; justify-content: space-between; align-items: center;
	margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--c);
}
.gg99-arrow { transition: transform .2s ease; }
.gg99-card:hover .gg99-arrow { transform: translateX(5px); }

.gg99-c1 { --c: #2563eb; }
.gg99-c2 { --c: #ea580c; }
.gg99-c3 { --c: #7c3aed; }
.gg99-c4 { --c: #0d9488; }
.gg99-c5 { --c: #dc2626; }
.gg99-c6 { --c: #0891b2; }
.gg99-c7 { --c: #c026d3; }
.gg99-c8 { --c: #16a34a; }
.gg99-c9 { --c: #ca8a04; }

/* Latest posts */
.gg99-posts { display: grid; gap: 20px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gg99-post-link {
	display: flex; flex-direction: column; height: 100%; overflow: hidden;
	background: #fff; border: 1px solid var(--gg-border); border-radius: var(--gg-radius); color: var(--gg-ink);
	transition: box-shadow .2s ease, transform .2s ease;
}
.gg99-post-link:hover, .gg99-post-link:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, .1); }
.gg99-post-link:focus-visible { outline: 3px solid var(--gg-primary); outline-offset: 3px; }
.gg99-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gg-alt); }
.gg99-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gg99-post-body { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.gg99-tag {
	align-self: flex-start; padding: 2px 10px; border-radius: 999px;
	background: #dbeafe; color: var(--gg-primary-dark); font-size: .78rem; font-weight: 700;
}
.gg99-post-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.gg99-post-meta { font-size: .85rem; color: var(--gg-muted); }

/* Mission */
.gg99-mission { max-width: 800px; text-align: center; }
.gg99-mission p { color: var(--gg-muted); font-size: 1.05rem; }
.gg99-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.gg99-btn {
	display: inline-block; padding: 12px 28px; border-radius: 999px; border: 2px solid var(--gg-primary);
	background: var(--gg-primary); color: #fff; font-weight: 700;
}
.gg99-btn:hover, .gg99-btn:focus-visible { background: var(--gg-primary-dark); border-color: var(--gg-primary-dark); color: #fff; }
.gg99-btn-ghost { background: transparent; color: var(--gg-primary); }
.gg99-btn-ghost:hover, .gg99-btn-ghost:focus-visible { background: var(--gg-primary); color: #fff; }

@media (max-width: 600px) {
	.gg99-hero { padding: 48px 0 56px; }
	.gg99-section { padding: 44px 0; }
	.gg99-search { flex-direction: column; border-radius: 20px; gap: 6px; }
	.gg99-search button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.gg99-card, .gg99-post-link, .gg99-arrow { transition: none; }
	.gg99-card:hover, .gg99-post-link:hover { transform: none; }
}
