/* EduTalks — homepage (v2.2.0). Brand colour comes from --et-brand (Settings → Homepage & Branding). */

.et-home,
.et-hdr,
.et-hero,
.et-stats,
.et-section,
.et-ftr {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a2e;
	line-height: 1.5;
	box-sizing: border-box;
}
.et-home *, .et-hdr *, .et-hero *, .et-stats *, .et-section *, .et-ftr * { box-sizing: border-box; }

/* Full-bleed wrapper when the whole page is one shortcode */
.et-home {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	background: #fff;
}

.et-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.et-ico { display: inline-flex; width: 1.25em; height: 1.25em; vertical-align: middle; }
.et-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.et-hdr { background: #fff; border-bottom: 1px solid #ececf3; position: sticky; top: 0; z-index: 50; }
.admin-bar .et-hdr { top: 32px; }
.et-hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.et-logo { display: inline-flex; align-items: center; text-decoration: none; }
.et-logo img { max-height: 44px; width: auto; display: block; }
.et-logo-text { font-size: 26px; font-weight: 800; color: var(--et-brand, #4f46e5); letter-spacing: -.5px; }

.et-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
.et-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.et-menu li { position: relative; margin: 0; }
.et-menu a { display: block; padding: 10px 14px; color: #2b2b44; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 8px; }
.et-menu a:hover { color: var(--et-brand, #4f46e5); background: var(--et-brand-tint, #f1f0ff); }
.et-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid #ececf3; border-radius: 10px; box-shadow: 0 12px 30px rgba(20, 20, 60, .12); padding: 6px; list-style: none; margin: 0; z-index: 10; }
.et-menu li:hover > .sub-menu, .et-menu li:focus-within > .sub-menu { display: block; }

.et-hdr-actions { display: flex; align-items: center; gap: 10px; }
.et-link-btn { color: #2b2b44; font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 12px; }
.et-link-btn:hover { color: var(--et-brand, #4f46e5); }
.et-btn-cta { background: var(--et-brand, #4f46e5); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; padding: 10px 18px; border-radius: 999px; white-space: nowrap; transition: background .15s; }
.et-btn-cta:hover { background: var(--et-brand-dark, #3730a3); }

.et-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.et-burger span { display: block; width: 24px; height: 2px; background: #1a1a2e; margin: 5px 0; transition: transform .2s, opacity .2s; }
.et-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.et-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.et-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.et-hero {
	background: linear-gradient(135deg, var(--et-brand-dark, #3730a3) 0%, var(--et-brand, #4f46e5) 60%, #7c74f0 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 84px 0 96px;
	text-align: center;
}
.et-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -1px; line-height: 1.12; margin: 0 0 10px; }
.et-hero-sub { font-size: clamp(16px, 2.2vw, 22px); opacity: .92; margin: 0 0 34px; }

.et-hero-search { max-width: 980px; margin: 0 auto; }
.et-hero-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.et-hero-tabs label { cursor: pointer; margin: 0; }
.et-hero-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.et-hero-tabs span { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); font-weight: 600; font-size: 14px; color: #fff; transition: all .15s; }
.et-hero-tabs label:hover span { background: rgba(255, 255, 255, .15); }
.et-hero-tabs input:checked + span { background: #fff; color: var(--et-brand, #4f46e5); border-color: #fff; }
.et-hero-tabs input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.et-hero-bar { display: flex; align-items: stretch; background: #fff; border-radius: 16px; padding: 8px; gap: 6px; box-shadow: 0 18px 50px rgba(10, 8, 60, .35); text-align: left; }
.et-hero-field { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #6b6b85; border-right: 1px solid #ececf3; min-width: 0; }
.et-hero-field .et-ico { flex: none; color: var(--et-brand, #4f46e5); }
.et-hero-field select, .et-hero-field input { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 15px; color: #1a1a2e; width: 100%; padding: 14px 0 !important; margin: 0 !important; height: auto !important; min-width: 0; }
.et-hero-city { flex: 0 0 200px; }
.et-hero-board { flex: 0 0 170px; }
.et-hero-q { flex: 1; border-right: 0; }
.et-hero-btn { background: var(--et-brand, #4f46e5); color: #fff; border: 0; border-radius: 12px; padding: 0 34px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s; }
.et-hero-btn:hover { background: var(--et-brand-dark, #3730a3); }

.et-hero-chips { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; font-size: 14px; }
.et-hero-chips span { opacity: .8; }
.et-hero-chips a { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .14); padding: 5px 14px; border-radius: 999px; }
.et-hero-chips a:hover { background: rgba(255, 255, 255, .28); }

/* ---------- Stats ---------- */
.et-stats { background: #fff; border-bottom: 1px solid #ececf3; }
.et-stats-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 56px; padding-top: 28px; padding-bottom: 28px; }
.et-stat { text-align: center; }
.et-stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--et-brand, #4f46e5); line-height: 1.1; }
.et-stat span { font-size: 14px; color: #6b6b85; }

/* ---------- Sections ---------- */
.et-section { padding: 68px 0; background: #fff; }
.et-section.et-alt { background: #f7f7fc; }
.et-section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.et-section-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.5px; margin: 0 0 8px; color: #1a1a2e; }
.et-section-head p { color: #6b6b85; margin: 0; font-size: 16px; }
.et-section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; text-align: left; gap: 16px; }
.et-more { color: var(--et-brand, #4f46e5); font-weight: 700; text-decoration: none; white-space: nowrap; }
.et-more:hover { text-decoration: underline; }

/* Cities */
.et-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.et-city-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: #fff; border: 1px solid #ececf3; border-radius: 14px; padding: 16px 18px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.et-city-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(30, 27, 100, .12); border-color: var(--et-brand-soft, #c7c3fa); }
.et-city-ico { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; background: var(--et-brand-tint, #f1f0ff); color: var(--et-brand, #4f46e5); display: flex; align-items: center; justify-content: center; }
.et-city-name { font-weight: 700; font-size: 16px; }
.et-city-count { font-size: 13px; color: #6b6b85; }

/* Tools */
.et-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.et-tool-card { background: #fff; border-radius: 18px; padding: 30px 26px; border: 1px solid #ececf3; box-shadow: 0 2px 14px rgba(20, 20, 60, .05); transition: transform .15s, box-shadow .15s; }
.et-tool-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(30, 27, 100, .12); }
.et-tool-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--et-brand-tint, #f1f0ff); color: var(--et-brand, #4f46e5); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 26px; }
.et-tool-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.et-tool-card h3 a { color: inherit; text-decoration: none; }
.et-tool-card p { color: #5d5d78; margin: 0 0 16px; font-size: 15px; }
.et-tool-link { color: var(--et-brand, #4f46e5); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* How it works */
.et-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; position: relative; }
.et-step { text-align: center; padding: 0 12px; position: relative; }
.et-step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--et-brand, #4f46e5); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto -16px; position: relative; z-index: 2; }
.et-step-ico { width: 96px; height: 96px; border-radius: 50%; background: var(--et-brand-tint, #f1f0ff); color: var(--et-brand, #4f46e5); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 40px; }
.et-step h3 { margin: 0 0 8px; font-size: 20px; }
.et-step p { color: #5d5d78; margin: 0; font-size: 15px; }

/* School cards */
.et-hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.et-hs-card { background: #fff; border: 1px solid #ececf3; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 14px rgba(20, 20, 60, .05); transition: transform .15s, box-shadow .15s; }
.et-hs-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(30, 27, 100, .14); }
.et-hs-cover { display: block; position: relative; height: 170px; background: linear-gradient(135deg, var(--et-brand-soft, #c7c3fa), var(--et-brand, #4f46e5)); background-size: cover; background-position: center; text-decoration: none; }
.et-hs-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, .55); }
.et-hs-flag { position: absolute; top: 12px; left: 12px; background: #16a34a; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.et-hs-body { padding: 0 18px 18px; position: relative; flex: 1; display: flex; flex-direction: column; }
.et-hs-logo { width: 64px; height: 64px; border-radius: 14px; background: #fff; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); margin-top: -32px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; color: var(--et-brand, #4f46e5); }
.et-hs-logo img { width: 100%; height: 100%; object-fit: cover; }
.et-hs-body h3 { margin: 12px 0 2px; font-size: 18px; line-height: 1.3; }
.et-hs-body h3 a { color: #1a1a2e; text-decoration: none; }
.et-hs-body h3 a:hover { color: var(--et-brand, #4f46e5); }
.et-verified { color: #16a34a; margin-left: 4px; font-size: 16px; }
.et-hs-loc { margin: 0 0 10px; color: #6b6b85; font-size: 14px; }
.et-hs-tags { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.et-hs-tags span { background: var(--et-brand-tint, #f1f0ff); color: var(--et-brand-dark, #3730a3); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.et-hs-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 10px 0; border-top: 1px solid #f0f0f6; }
.et-hs-rating { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.et-hs-rating .et-ico { color: #f59e0b; width: 1em; height: 1em; }
.et-hs-rating .et-ico svg { fill: #f59e0b; }
.et-hs-rating small { color: #6b6b85; font-weight: 400; }
.et-muted { color: #8a8aa3; font-weight: 500; }
.et-hs-heart { background: none; border: 0; cursor: pointer; color: #6b6b85; font-size: 13px; font-weight: 600; padding: 4px 0; }
.et-hs-heart.et-shortlisted { color: #e11d48; }
.et-hs-actions { display: flex; gap: 8px; }
.et-hs-btn { flex: 1; text-align: center; padding: 10px 12px; border-radius: 10px; background: var(--et-brand, #4f46e5); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; }
.et-hs-btn:hover { background: var(--et-brand-dark, #3730a3); }
.et-hs-btn-ghost { background: #fff; color: var(--et-brand, #4f46e5) !important; border: 1.5px solid var(--et-brand, #4f46e5); }
.et-hs-btn-ghost:hover { background: var(--et-brand-tint, #f1f0ff); }

/* Browse */
.et-browse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.et-browse-col h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .8px; color: #6b6b85; margin: 0 0 12px; }
.et-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.et-pills a { background: #fff; border: 1px solid #dcdcec; border-radius: 999px; padding: 7px 16px; color: #2b2b44; text-decoration: none; font-weight: 600; font-size: 14px; transition: all .15s; }
.et-pills a:hover { background: var(--et-brand, #4f46e5); border-color: var(--et-brand, #4f46e5); color: #fff; }

/* CTA */
.et-cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.et-cta { border-radius: 22px; padding: 38px 34px; }
.et-cta h2 { margin: 0 0 10px; font-size: 28px; font-weight: 800; color: inherit; }
.et-cta p { margin: 0 0 16px; font-size: 16px; opacity: .92; }
.et-cta ul { list-style: none; margin: 0 0 24px; padding: 0; }
.et-cta li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-weight: 600; }
.et-cta li .et-ico { flex: none; }
.et-cta-parent { background: var(--et-brand-tint, #f1f0ff); color: #1a1a2e; }
.et-cta-parent li .et-ico { color: var(--et-brand, #4f46e5); }
.et-cta-school { background: linear-gradient(135deg, var(--et-brand-dark, #3730a3), var(--et-brand, #4f46e5)); color: #fff; }
.et-cta-btn { display: inline-block; background: var(--et-brand, #4f46e5); color: #fff !important; padding: 13px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.et-cta-btn:hover { background: var(--et-brand-dark, #3730a3); }
.et-cta-btn-light { background: #fff; color: var(--et-brand-dark, #3730a3) !important; }
.et-cta-btn-light:hover { background: #eeedff; }

/* Blog */
.et-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.et-blog-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #ececf3; }
.et-blog-img { display: block; height: 180px; background: var(--et-brand-soft, #c7c3fa) center / cover; }
.et-blog-body { padding: 18px 20px 22px; }
.et-blog-body time { font-size: 13px; color: #8a8aa3; }
.et-blog-body h3 { margin: 6px 0 8px; font-size: 18px; line-height: 1.35; }
.et-blog-body h3 a { color: #1a1a2e; text-decoration: none; }
.et-blog-body h3 a:hover { color: var(--et-brand, #4f46e5); }
.et-blog-body p { margin: 0; color: #5d5d78; font-size: 14px; }

/* Footer */
.et-ftr { background: #14142b; color: #c4c4dc; margin-top: 0; }
.et-ftr a { color: #c4c4dc; text-decoration: none; }
.et-ftr a:hover { color: #fff; }
.et-ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.et-ftr .et-logo-text { color: #fff; }
.et-ftr .et-logo img { filter: brightness(0) invert(1); }
.et-ftr-about p { font-size: 14px; margin: 14px 0 0; max-width: 340px; }
.et-ftr-contact { margin: 6px 0 0 !important; }
.et-ftr h4 { color: #fff; font-size: 15px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .8px; }
.et-ftr h4.et-ftr-h-gap { margin-top: 26px; }
.et-ftr ul { list-style: none; margin: 0; padding: 0; }
.et-ftr li { margin: 0 0 9px; font-size: 14px; }
.et-social { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; font-size: 14px; }
.et-ftr-bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.et-burger { display: block; }
	.et-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid #ececf3; box-shadow: 0 16px 30px rgba(20, 20, 60, .1); max-height: calc(100vh - 68px); overflow-y: auto; }
	.et-nav.is-open { display: flex; }
	.et-menu { flex-direction: column; align-items: stretch; }
	.et-menu .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
	.et-hdr-actions { padding-top: 12px; flex-wrap: wrap; }
	.et-hero { padding: 56px 0 64px; }
	.et-hero-bar { flex-direction: column; padding: 10px; }
	.et-hero-field { border-right: 0; border-bottom: 1px solid #ececf3; flex: none !important; }
	.et-hero-q { border-bottom: 0; }
	.et-hero-btn { padding: 14px; }
	.et-ftr-grid { grid-template-columns: 1fr 1fr; }
	.et-section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 782px) { .admin-bar .et-hdr { top: 46px; } }
@media (max-width: 560px) {
	.et-section { padding: 48px 0; }
	.et-ftr-grid { grid-template-columns: 1fr; }
	.et-hs-grid { grid-template-columns: 1fr; }
	.et-stats-in { gap: 14px 30px; }
}

/* Dropdown lists must stay readable whatever the theme does to <option> */
.et-hero-field select option { color: #1a1a2e; background: #fff; }
