/*
Theme Name: Eduhunts
Theme URI: https://eduhunts.com/
Author: Marketing Panthers
Description: Lightweight custom blog theme for eduhunts.com — top lists and industry guides.
Version: 1.0.3
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: eduhunts
*/

:root {
	--ink: #14213d;
	--ink-soft: #3d4a66;
	--muted: #6b7489;
	--line: #e3e7ef;
	--bg: #f6f8fb;
	--card: #ffffff;
	--brand: #0e7c66;
	--brand-dark: #0a5c4c;
	--accent: #f4a825;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .06);
	--wrap: 1180px;
	--read: 740px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Merriweather", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; color: var(--ink); margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.2rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .dot { color: var(--brand); }
.brand img { max-height: 44px; width: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.primary-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-category-ancestor > a { background: #e8f4f1; color: var(--brand-dark); text-decoration: none; }

@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--ink) 0%, #1f3a68 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; margin: 0 0 10px; }
.hero p { color: #c9d3e6; max-width: 640px; margin: 0 0 24px; font-size: 1.08rem; }
.hero .search-form { max-width: 520px; }

/* Search */
.search-form { display: flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--shadow); }
.search-form input[type="search"] { flex: 1; border: 0; padding: 10px 16px; font: inherit; font-size: 1rem; border-radius: 999px; min-width: 0; color: var(--ink); }
.search-form input[type="search"]:focus { outline: 2px solid var(--brand); }
.search-form button { border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.search-form button:hover { background: var(--brand-dark); }

/* Layout */
.site-main { padding: 40px 0 64px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.section-title { font-family: var(--font); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }

/* Cards */
.featured { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 36px; }
.featured .thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.featured .body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; }
.featured h2 { margin: 8px 0 12px; font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .thumb .ph { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dfeee9, #e8edf7); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 6px 0 8px; font-size: 1.12rem; }
.card h3 a, .featured h2 a { color: var(--ink); }
.card p, .featured p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 14px; }
.card .meta { margin-top: auto; }
.cat-pill { display: inline-block; background: #e8f4f1; color: var(--brand-dark); font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.cat-pill:hover { text-decoration: none; background: #d4ece5; }
.meta { color: var(--muted); font-size: .85rem; }
.meta span + span::before { content: "·"; margin: 0 6px; }

/* Sidebar */
.sidebar .widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 24px; }
.sidebar .widget-title { font-family: var(--font); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar li a { color: var(--ink); }
.sidebar .search-form { box-shadow: none; border: 1px solid var(--line); }
.cta-box { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important; color: #fff; }
.cta-box .widget-title, .cta-box p { color: #e3f4ef !important; }
.cta-box .btn { background: #fff; color: var(--brand-dark); }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; font-weight: 600; padding: 11px 22px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }

/* Single */
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.entry { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 48px); }
.entry-header h1 { margin: 10px 0 12px; }
.entry-thumb { margin: 26px 0 0; border-radius: 12px; overflow: hidden; }
.entry-thumb img { width: 100%; }
.entry-content { max-width: var(--read); margin: 28px auto 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin: .3em 0; }
.entry-content h2 { scroll-margin-top: 90px; padding-top: .4em; border-top: 1px solid var(--line); }
.entry-content h3 { scroll-margin-top: 90px; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 22px; border-left: 4px solid var(--accent); background: #fff8ea; border-radius: 0 10px 10px 0; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figure img { border-radius: 10px; margin: 0 auto; }
.entry-content figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1.5em 0; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th, .entry-content thead td { background: #f0f4f9; font-weight: 600; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.wp-block-table { margin: 0; }
.alignwide { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

.toc { background: #f3f7fb; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 0 0 30px; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ul { list-style: none; margin: 12px 0 0; padding: 0; font-size: .95rem; }
.toc li { margin: 0; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.toc li:last-child { border-bottom: 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }

.post-footer { max-width: var(--read); margin: 36px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.share a { display: inline-block; margin-left: 6px; font-size: .85rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }
.share a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.related { margin-top: 44px; }

/* Archive / pagination */
.archive-header { margin: 0 0 26px; }
.archive-header h1 { margin: 0 0 6px; }
.archive-header p { color: var(--ink-soft); margin: 0; }
.pagination { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow); color: var(--ink); }
.pagination .current { background: var(--brand); color: #fff; }

/* Contact form */
.contact-form { display: grid; gap: 16px; margin-top: 10px; }
.contact-form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfd6e3; border-radius: 10px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; }
.notice.ok { background: #e6f6ef; color: #0a5c4c; }
.notice.err { background: #fdecec; color: #8a1f1f; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c3d8; padding: 48px 0 28px; font-size: .93rem; }
.site-footer a { color: #e3e9f5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

.error-404 { text-align: center; padding: 40px 0; }
.error-404 .search-form { max-width: 480px; margin: 24px auto 0; }

/* Answer boxes (Quick answer / Key takeaways) */
.entry-content .quick-answer, .entry-content .key-takeaways { border-radius: 12px; padding: 18px 22px; margin: 0 0 1.6em; }
.entry-content .quick-answer { background: #e8f4f1; border-left: 5px solid var(--brand); }
.entry-content .key-takeaways { background: #fff8ea; border-left: 5px solid var(--accent); }
.entry-content .quick-answer > *:last-child, .entry-content .key-takeaways > *:last-child { margin-bottom: 0; }
.entry-content .box-title { margin: 0 0 .5em; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.entry-content .key-takeaways ul { margin: 0; }
.entry-content .wp-block-table thead th { background: #f0f4f9; font-weight: 600; }
.entry-content .wp-block-table figcaption { font-size: .85rem; color: var(--muted); text-align: left; }
.entry-content .last-updated { font-size: .9rem; color: var(--muted); }

/* Author byline + box */
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.byline { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.byline a { font-weight: 600; color: var(--ink); }
.author-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 700; letter-spacing: .02em; }
.author-box { display: flex; gap: 18px; align-items: flex-start; max-width: var(--read); margin: 30px auto 0; padding: 22px; background: #f3f7fb; border: 1px solid var(--line); border-radius: 14px; }
.author-box p { margin: 0 0 6px; }
.author-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.author-name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
h1.author-name { font-size: clamp(1.5rem, 3vw, 2rem); }
.author-name a { color: var(--ink); }
.author-title { font-size: .9rem; color: var(--brand-dark); font-weight: 600; }
.author-bio { font-size: .95rem; color: var(--ink-soft); }
.author-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.author-social a { font-size: .82rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); }
.author-social a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.archive-header .author-box { margin: 0 0 28px; max-width: none; background: var(--card); box-shadow: var(--shadow); border: 0; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }
