/* TechSoft4You - public website
   Colours are taken from the logo: the red block and the charcoal squares. */

:root {
    --brand: #D45051;
    --brand-dark: #B23D3E;
    --brand-soft: #FBEDED;
    --ink: #2A2B2D;
    --grey: #646567;
    --grey-2: #8A8B8E;
    --line: #E7E7EA;
    --bg: #FFFFFF;
    --bg-alt: #F6F6F8;
    --dark: #1F2023;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(30, 30, 40, .08);
    --shadow-lg: 0 24px 60px rgba(30, 30, 40, .14);
    --font-head: 'Outfit', 'Noto Sans Devanagari', 'Noto Sans Tamil', system-ui, sans-serif;
    --font-body: 'Inter', 'Noto Sans Devanagari', 'Noto Sans Tamil', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-name { font-family: var(--font-head); letter-spacing: -.01em; }
h1, h2 { font-weight: 700; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
svg { width: 1.1em; height: 1.1em; vertical-align: -.15em; flex-shrink: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(212, 80, 81, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .65rem 1.25rem; display: inline-flex; align-items: center; gap: .5rem; justify-content: center; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-brand { background: var(--brand); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(212, 80, 81, .28); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand); border: 0; }
.btn-light:hover { background: #fff; color: var(--brand-dark); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .04); }
.navbar { padding: .75rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.35rem; font-weight: 600; color: var(--grey); }
.brand-name em { font-style: normal; color: var(--grey); }
.brand-tag { font-size: .72rem; color: var(--brand); font-weight: 500; letter-spacing: .02em; }
.nav-link { color: var(--ink); font-weight: 500; padding: .5rem .85rem !important; border-radius: 10px; }
.nav-link:hover { color: var(--brand); }
.nav-link.active { color: var(--brand); background: var(--brand-soft); }
.navbar-toggler { border: 0; padding: .5rem; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero { padding: 5rem 0 5.5rem; }
.page-hero { padding: 4.5rem 0 3.5rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.page-hero .lead { max-width: 640px; color: var(--grey); }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: .75rem 0 1.25rem; }
.hero-text { color: var(--grey); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--grey); font-size: .95rem; }
.hero-points svg { color: var(--brand); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: .5rem; }

/* the floating squares from the logo */
.hero-pixels span { position: absolute; border-radius: 22%; opacity: .9; }
.hero-pixels span:nth-child(1) { width: 26px; height: 26px; background: var(--brand); top: 14%; right: 8%; }
.hero-pixels span:nth-child(2) { width: 54px; height: 54px; background: var(--grey); opacity: .12; top: 22%; right: 3%; }
.hero-pixels span:nth-child(3) { width: 18px; height: 18px; background: var(--grey); opacity: .35; bottom: 6%; left: 46%; }
.hero-pixels span:nth-child(4) { width: 12px; height: 12px; background: var(--brand); bottom: 12%; left: 49%; }
@media (max-width: 991px) { .hero-pixels span:nth-child(n+3) { display: none; } }

.hero-visual { position: relative; max-width: 520px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.hv-window { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.hv-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hv-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d9de; }
.hv-bar i:first-child { background: var(--brand); }
.hv-bar span { margin-left: 12px; font-size: .75rem; color: var(--grey-2); background: #fff; padding: 2px 12px; border-radius: 20px; }
.hv-body { padding: 28px; }
.hv-line { height: 12px; border-radius: 8px; background: #EDEDF0; margin-bottom: 12px; }
.hv-line.w-75 { width: 75%; } .hv-line.w-50 { width: 50%; }
.hv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.hv-card { height: 86px; border-radius: 12px; background: #F1F1F4; }
.hv-card.red { background: linear-gradient(135deg, var(--brand), #E77B7C); }
.hv-badge { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--grey); }
.hv-badge svg { color: var(--brand); width: 1.4em; height: 1.4em; }
.hv-badge strong { color: var(--ink); }
.hv-badge-1 { left: -10px; bottom: 30px; }
.hv-badge-2 { right: -6px; top: 70px; }
.hv-cursor { position: absolute; width: 96px; height: auto; right: 20px; bottom: -10px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.12)); }

/* ---------- Stats ---------- */
.stats-band { background: var(--dark); color: #fff; padding: 2.75rem 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: #fff; }
.stat span { color: #B9BABE; font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark .section-head p { color: #B9BABE; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--grey); }
.section-head.text-start { max-width: none; }
.narrow { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--grey); line-height: 1.75; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--grey); background: var(--bg-alt); border-radius: var(--radius); }
.text-muted-2 { color: var(--grey-2); }

/* ---------- Service cards ---------- */
.service-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card h3 { font-size: 1.25rem; margin: 1.25rem 0 .5rem; }
.service-card p { color: var(--grey); }
.service-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.service-icon svg { width: 26px; height: 26px; }
.service-icon.lg { width: 72px; height: 72px; border-radius: 20px; }
.service-icon.lg svg { width: 32px; height: 32px; }
.service-list { display: grid; gap: 1.25rem; }
.service-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.75rem; align-items: center; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service-row h2 { font-size: 1.4rem; margin-bottom: .35rem; }
.service-row p { color: var(--grey); margin-bottom: .35rem; }
.lead-sm { font-size: 1.05rem; color: var(--ink) !important; }
@media (max-width: 767px) { .service-row { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Process ---------- */
.step { background: #fff; border-radius: var(--radius); padding: 2rem; height: 100%; border: 1px solid var(--line); }
.step span { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--brand); opacity: .9; }
.step h3 { font-size: 1.2rem; margin: .5rem 0; }
.step p { color: var(--grey); margin: 0; }

/* ---------- Projects ---------- */
.project-card { height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--grey), #3a3b3e); }
.project-placeholder span { font-family: var(--font-head); font-size: 4rem; font-weight: 800; color: #fff; opacity: .9; }
.project-cat { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--brand); font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.project-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.project-client { font-size: .85rem; color: var(--grey-2); margin-bottom: .6rem; }
.project-client a { color: var(--grey); text-decoration: none; }
.project-client a:hover { color: var(--brand); text-decoration: underline; }
.project-body p { color: var(--grey); flex: 1; }
.tech-tags { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tags li { background: var(--bg-alt); color: var(--grey); font-size: .75rem; padding: 3px 10px; border-radius: 20px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: .45rem 1rem; border-radius: 30px; font-weight: 500; }
.chip.active, .chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ---------- Testimonials ---------- */
.quote-card { height: 100%; background: #2A2B2F; border-radius: var(--radius); padding: 2rem; margin: 0; display: flex; flex-direction: column; }
.quote-card.light { background: #fff; border: 1px solid var(--line); }
.quote-card blockquote { font-size: 1.05rem; line-height: 1.65; flex: 1; }
.quote-card figcaption strong { display: block; }
.quote-card figcaption span { color: #9FA0A4; font-size: .9rem; }
.quote-card.light figcaption span { color: var(--grey-2); }
.stars { color: #F5B83D; margin-bottom: 1rem; }
.stars svg { fill: currentColor; stroke: none; }

/* ---------- Why us / industries / FAQ ---------- */
.reason { display: flex; gap: 1rem; height: 100%; background: #2A2B2F; border-radius: var(--radius); padding: 1.5rem; }
.reason h3 { font-size: 1.1rem; color: #fff; margin: .1rem 0 .35rem; }
.reason p { color: #B9BABE; margin: 0; font-size: .95rem; }
.reason-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(212, 80, 81, .16); color: #F07B7C; display: grid; place-items: center; flex-shrink: 0; }
.reason-icon svg { width: 22px; height: 22px; }
.industry { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.industry .reason-icon { background: var(--brand-soft); color: var(--brand); margin-bottom: .9rem; }
.industry h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.industry p { color: var(--grey); font-size: .92rem; margin: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1.05rem; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 2.5rem 1.1rem 0; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink); position: relative; }
.faq-q::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-q.collapsed::after { transform: translateY(-50%) rotate(-45deg); }
.faq-q:hover { color: var(--brand); }
.faq-a { color: var(--grey); line-height: 1.7; padding: 0 2.5rem 1.2rem 0; margin: 0; }

/* ---------- Careers ---------- */
.careers-teaser, .cta-card { border-radius: var(--radius); padding: 2.5rem; }
.careers-teaser { background: var(--bg-alt); }
.cta-card { background: linear-gradient(135deg, var(--brand), #E06B6C); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cta-card p { opacity: .92; font-size: 1.05rem; }
.cta-card.wide { align-items: center; text-align: center; padding: 3.5rem 2rem; }
.mini-jobs { list-style: none; padding: 0; margin: 1.25rem 0; }
.mini-jobs a { display: flex; flex-direction: column; padding: .85rem 1rem; background: #fff; border-radius: 12px; margin-bottom: .5rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.mini-jobs a:hover { border-color: var(--brand); }
.mini-jobs span { font-size: .85rem; color: var(--grey-2); }

.job-search { display: grid; grid-template-columns: 1fr 240px auto; gap: .75rem; margin-bottom: 2rem; }
@media (max-width: 767px) { .job-search { grid-template-columns: 1fr; } }
.form-control, .form-select { border-radius: 12px; padding: .7rem 1rem; border-color: #DCDCE1; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(212, 80, 81, .15); }
.result-count { color: var(--grey); font-weight: 500; }
.job-list { display: grid; gap: 1rem; }
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.75rem 2rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.job-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.job-card h2 { font-size: 1.35rem; margin: .2rem 0 .4rem; }
.job-card p { color: var(--grey); margin-bottom: .75rem; }
.job-dept { font-size: .78rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.job-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--grey); font-size: .9rem; }
.job-meta svg { color: var(--brand); }
.job-meta.light { margin-top: 1rem; }
.job-go { font-weight: 600; color: var(--brand); white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 767px) { .job-card { flex-direction: column; align-items: flex-start; } }
.back-link { display: block; width: fit-content; text-decoration: none; color: var(--grey); margin-bottom: 1rem; font-weight: 500; }
.job-content h2 { font-size: 1.35rem; margin: 2rem 0 1rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--grey); line-height: 1.6; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 16px; height: 16px; border-radius: 5px; background: var(--brand-soft); border: 2px solid var(--brand); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.25rem; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; }
.form-note, .form-hint { color: var(--grey-2); font-size: .88rem; }
.form-label { font-weight: 500; font-size: .92rem; }
.field-error, .field-validation-error { color: #C0392B; font-size: .85rem; }
.input-validation-error { border-color: #C0392B !important; }
.sticky-lg { position: sticky; top: 96px; }
@media (max-width: 991px) { .sticky-lg { position: static; } }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { border: 1.5px solid var(--line); border-radius: 30px; padding: .45rem 1rem; cursor: pointer; font-size: .92rem; font-weight: 500; }
.btn-check:checked + .choice { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.btn-check:focus-visible + .choice { outline: 3px solid rgba(212, 80, 81, .45); }
fieldset legend.form-label { font-size: .92rem; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-side { padding: .5rem 0; }
.contact-side h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.contact-list strong { display: block; font-size: .85rem; color: var(--grey-2); font-weight: 500; }
.contact-list a, .contact-list span { color: var(--ink); text-decoration: none; font-weight: 500; }
.ci { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.promise { background: var(--bg-alt); border-radius: var(--radius); padding: 1.75rem; margin-top: 2rem; }
.promise h3 { font-size: 1.1rem; }
.promise ol { color: var(--grey); padding-left: 1.2rem; margin: 0; }
.promise li { margin-bottom: .4rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 575px) { .about-grid { grid-template-columns: 1fr; } }
.about-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; height: 100%; }
.about-tile svg { width: 30px; height: 30px; color: var(--brand); }
.about-tile h3 { font-size: 1.15rem; margin: 1rem 0 .4rem; }
.about-tile p { color: var(--grey); margin: 0; font-size: .95rem; }
.about-tile.red { background: var(--brand); border-color: var(--brand); color: #fff; }
.about-tile.red svg, .about-tile.red p { color: #fff; }
.tech-cloud { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; max-width: 860px; margin: 0 auto; }
.tech-cloud li { border: 1px solid var(--line); border-radius: 30px; padding: .55rem 1.2rem; font-weight: 500; color: var(--grey); background: #fff; }

/* ---------- Thank you / status ---------- */
.thank-you { background: var(--bg-alt); min-height: 60vh; display: flex; align-items: center; }
.thank-card { background: #fff; border-radius: 24px; padding: 3.5rem 2rem; max-width: 640px; margin: 0 auto; text-align: center; box-shadow: var(--shadow); }
.thank-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto 1.5rem; }
.thank-icon svg { width: 36px; height: 36px; stroke-width: 2.6; }
.thank-card .lead { color: var(--grey); }
.ref-box { display: inline-block; background: var(--brand-soft); padding: .75rem 1.5rem; border-radius: 12px; margin-top: 1rem; }
.ref-box strong { color: var(--brand); font-family: var(--font-head); font-size: 1.2rem; margin-left: .35rem; }
.status-code { font-family: var(--font-head); font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #B9BABE; padding: 4.5rem 0 1.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; }
.footer-logo { background: #fff; display: inline-block; padding: 12px 16px; border-radius: 14px; margin-bottom: 1.25rem; }
.footer-logo img { height: 70px; width: auto; display: block; }
.footer-about { max-width: 360px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .65rem; }
.footer-links a, .footer-contact a { color: #B9BABE; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact svg { color: var(--brand); margin-top: .2rem; }
.footer-contact .office { display: block; color: #fff; font-weight: 600; font-size: .85rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; background: #2E2F33; color: #fff; display: grid; place-items: center; }
.footer-social a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid #333438; margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .88rem; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); z-index: 1040; }
.whatsapp-float svg { width: 30px; height: 30px; }
.contact-list .ci { color: var(--brand); }
.contact-list .ci-wa { background: #E6F8EE; color: #25D366; }
.whatsapp-float:hover { color: #fff; transform: scale(1.05); }

/* Laptop screens (13-15", usually 1280-1536px wide with Windows scaling):
   same design, a little less height and type, so more fits without scrolling. */
@media (min-width: 992px) and (max-width: 1440px) {
    .hero { padding: 3.5rem 0 4rem; }
    .hero-title { font-size: clamp(2.2rem, 3.6vw, 3rem); }
    .page-hero { padding: 3.25rem 0 2.75rem; }
    .page-hero h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
    .section { padding: 3.75rem 0; }
    .section-head { margin-bottom: 2.25rem; }
    .section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
    .stats-band { padding: 2.25rem 0; }
    .stat strong { font-size: 2rem; }
    .service-card, .step, .about-tile, .industry, .reason { padding: 1.4rem; }
    .form-card { padding: 1.75rem; }
    .hero-visual { max-width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Justified paragraphs on every public page. Centred blocks (section intros, CTA, thank-you) stay centred,
   and the last line stays left so short lines don't stretch. */
main p, main .lead, .detail-text, .job-desc { text-align: justify; text-justify: inter-word; text-align-last: left; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
main .text-center p, main p.text-center, .section-head p, .cta-card.wide p, .thank-card p, .empty-state p,
main .text-center .lead, .section-head .lead { text-align: center; text-align-last: center; }
/* Very narrow tiles: justify leaves big word gaps, so they stay left-aligned. */
main .about-tile p, main .stat p, main .hv-card p { text-align: left; }
@media (max-width: 575.98px) { main p, main .lead { text-align: left; } main .section-head p { text-align: center; } }
main .step p, main .industry p, main .reason p { text-align: left; }
.eyebrow .brand-name { text-transform: none; letter-spacing: .04em; }

/* ---------- Kids Maths Practice ---------- */
.km-section { padding-top: 3rem; }
.km .btn-soft { background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); }
.km .btn-soft:hover { background: #ECECEF; }
.km-setup { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 1.75rem; margin-bottom: 2rem; }
.km-label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin-bottom: .6rem; }
.km-grades { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.km-grade { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: .65rem 1.2rem; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); min-width: 5.5rem; transition: all .15s; }
.km-grade:hover { border-color: var(--brand); }
.km-grade.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(212, 80, 81, .28); }
.km-best { margin-top: 1rem; color: var(--grey); font-weight: 500; }

.km-quiz { margin-bottom: 2.5rem; scroll-margin-top: 90px; }
.km-quiz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: 1rem; }
.km-quiz-head h2 { font-size: 1.6rem; margin: 0; }
.km-progress { color: var(--grey); font-weight: 500; }
.km-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.km-q { display: flex; gap: 1rem; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 1.1rem 1.25rem; }
.km-q.is-right { border-color: #2E9E5B; background: #F3FBF6; }
.km-q.is-wrong { border-color: #E0A2A3; background: #FFF8F8; }
.km-qnum { flex: 0 0 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-family: var(--font-head); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.km-qbody { flex: 1; min-width: 0; }
.km-text { font-size: 1.2rem; font-weight: 500; line-height: 1.5; margin-bottom: .6rem; }
.km-visual { font-size: 2rem; line-height: 1.35; letter-spacing: .1em; margin-bottom: .7rem; word-break: break-all; }
.km-answer { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.km-input { width: 11rem; max-width: 100%; font-size: 1.3rem; font-weight: 600; padding: .45rem .8rem; border-radius: 12px; border-width: 2px; }
.km-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(212, 80, 81, .2); }
.km-input[readonly] { background: #fff; }
.km-unit { font-weight: 600; color: var(--grey); font-size: 1.1rem; }
.km-mark { font-weight: 700; margin-top: .75rem; }
.km-mark.ok { color: #1F7A45; }
.km-mark.bad { color: #B23D3E; }
.km-correct { margin-top: .25rem; font-size: 1.1rem; }
.km-correct strong { color: #1F7A45; font-size: 1.25rem; }
.km-explain { margin-top: .75rem; background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: .9rem 1.1rem; }
.km-explain-title { font-family: var(--font-head); font-weight: 600; margin-bottom: .4rem; }
.km-steps { margin: 0; padding-left: 1.3rem; }
.km-steps li { margin-bottom: .3rem; line-height: 1.55; }
.km-col { margin: .75rem 0 0; background: var(--bg-alt); border-radius: 10px; padding: .75rem 1rem; font-size: 1.15rem; line-height: 1.35; display: inline-block; font-family: Consolas, 'Courier New', monospace; }
.km-more { margin-top: .4rem; }
.km-more summary { cursor: pointer; color: var(--brand); font-weight: 500; }
.km-warn { margin-top: 1rem; background: #FFF6E5; border: 1px solid #F1D29A; color: #7A5600; border-radius: 12px; padding: .75rem 1rem; font-weight: 500; }
.km-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

.km-result { border-radius: 20px; padding: 1.5rem; margin-bottom: 1.25rem; text-align: center; border: 2px solid var(--line); background: #fff; scroll-margin-top: 90px; }
.km-result:focus { outline: none; }
.km-result.good { border-color: #2E9E5B; background: #F3FBF6; }
.km-result.ok { border-color: #F1D29A; background: #FFFBF2; }
.km-result.low { border-color: #E0A2A3; background: #FFF8F8; }
.km-stars { font-size: 2.4rem; color: #F2B01E; letter-spacing: .15em; line-height: 1; }
.km-score strong { display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1.2; }
.km-score span { color: var(--grey); font-weight: 600; }
.km-msg { font-size: 1.1rem; margin: .5rem 0 1rem; }
.km-result-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.km-tips { margin-top: .5rem; }
.km-tip { background: var(--bg-alt); border-radius: 16px; padding: 1.1rem 1.25rem; height: 100%; }
.km-tip strong { display: block; font-family: var(--font-head); margin-bottom: .25rem; }
.km-tip span { color: var(--grey); font-size: .95rem; }

@media (max-width: 575.98px) {
    .km-setup { padding: 1.25rem; }
    .km-grade { min-width: 0; flex: 1 0 28%; padding: .6rem .5rem; }
    .km-q { padding: 1rem; gap: .75rem; }
    .km-qnum { flex-basis: 2rem; height: 2rem; font-size: .9rem; }
    .km-text { font-size: 1.1rem; }
    .km-col { font-size: 1rem; }
}

/* ---------- Kids Education: menu, landing page, multiple choice ---------- */
.kids-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; min-width: 15rem; }
.kids-menu .dropdown-item { border-radius: 10px; padding: .55rem .75rem; font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.kids-menu .dropdown-item small { margin-left: auto; color: var(--grey-2); font-weight: 400; font-size: .78rem; }
.kids-menu .dropdown-item:hover, .kids-menu .dropdown-item:focus { background: var(--brand-soft); color: var(--brand); }

.ke-card { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; height: 100%; padding: 2rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ke-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.ke-card h2 { font-size: 1.8rem; margin: 0; }
.ke-card p { color: var(--grey); margin: 0; text-align: left; }
.ke-icon { font-size: 2.6rem; line-height: 1; }
.ke-classes { font-weight: 600; color: var(--brand); font-size: .95rem; }
.ke-card .btn { margin-top: auto; }

.km-switch { display: inline-flex; gap: .4rem; background: var(--bg-alt); border-radius: 14px; padding: .3rem; margin-bottom: 1.25rem; }
.km-switch-link { padding: .5rem 1.1rem; border-radius: 10px; font-weight: 600; color: var(--grey); text-decoration: none; }
.km-switch-link:hover { color: var(--brand); }
.km-switch-link.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(30, 30, 40, .08); }
.km-grades .km-grade { min-width: 5rem; }

.km-input.km-wide { width: 20rem; }
.km-quote { font-size: 1.15rem; background: var(--bg-alt); border-left: 4px solid var(--brand); border-radius: 10px; padding: .7rem 1rem; margin-bottom: .8rem; line-height: 1.5; }
.km-mono { font-family: Consolas, 'Courier New', monospace; font-size: 1.2rem; background: var(--bg-alt); border-radius: 10px; padding: .6rem 1rem; display: inline-block; margin-bottom: .8rem; }
.km-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .55rem; }
.km-opt { display: flex; align-items: center; gap: .6rem; border: 2px solid var(--line); border-radius: 12px; padding: .6rem .85rem; background: #fff; cursor: pointer; font-size: 1.05rem; font-weight: 500; line-height: 1.35; transition: border-color .12s, background .12s; }
.km-opt:hover { border-color: var(--brand); }
.km-opt input { accent-color: var(--brand); width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin: 0; }
.km-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.km-opt:has(input:focus-visible) { box-shadow: 0 0 0 .2rem rgba(212, 80, 81, .25); }
.km-opt:has(input:disabled) { cursor: default; }
.km-opt.is-answer { border-color: #2E9E5B; background: #E8F7EE; }
.km-opt.is-chosen-wrong { border-color: #D45051; background: #FDECEC; text-decoration: line-through; }
main .km-quote, main .km-text { text-align: left; }
@media (max-width: 575.98px) {
    .km-options { grid-template-columns: 1fr; }
    .km-input.km-wide { width: 100%; }
    .km-grades .km-grade { flex: 1 0 22%; min-width: 0; font-size: .95rem; }
}
.km-options.long { grid-template-columns: 1fr; }
.kids-menu .ke-menu-icon { width: 1.5rem; text-align: center; font-weight: 700; color: var(--brand); }
.km-switch { flex-wrap: wrap; }
.ke-icon { font-weight: 700; color: var(--brand); }
.km-options.short { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 8rem)); }
.km-options.short .km-opt { font-size: 1.6rem; justify-content: center; padding: .5rem .75rem; }
.km-mono, .km-col { max-width: 100%; overflow-x: auto; }

/* ---------- Kids Education: read aloud ---------- */
.km-qhead { display: flex; align-items: flex-start; gap: .75rem; }
.km-qhead .km-text { flex: 1; }
.km-speak { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; border: 2px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px; padding: .3rem .8rem .3rem .6rem; font-weight: 600; font-size: .9rem; line-height: 1.2; transition: background .15s, color .15s; }
.km-speak:hover { background: var(--brand-soft); }
.km-speak:focus-visible { outline: 3px solid rgba(212, 80, 81, .35); outline-offset: 2px; }
.km-speak-on, .km-speak-off { font-size: 1.05rem; line-height: 1; }
.km-speak .km-speak-off { display: none; }
.km-speak.is-speaking { background: var(--brand); color: #fff; animation: km-pulse 1.2s ease-in-out infinite; }
.km-speak.is-speaking .km-speak-on { display: none; }
.km-speak.is-speaking .km-speak-off { display: inline; }
.km-explain-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.km-explain-title .km-speak { font-size: .82rem; padding: .2rem .7rem .2rem .5rem; }
@keyframes km-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 80, 81, .45); } 50% { box-shadow: 0 0 0 6px rgba(212, 80, 81, 0); } }
@media (prefers-reduced-motion: reduce) { .km-speak.is-speaking { animation: none; } }
@media (max-width: 575.98px) { .km-speak .km-speak-text { display: none; } .km-speak { padding: .4rem .55rem; } }
.km-voice-tip { margin-top: 1rem; background: #FFF6E5; border: 1px solid #F1D29A; color: #7A5600; border-radius: 12px; padding: .65rem .9rem; font-size: .92rem; }

/* ---------- Thirukkural ---------- */
.no-speech .km-speak { display: none !important; }
.tk-search { display: flex; gap: .6rem; margin: .5rem 0 1rem; max-width: 760px; }
.tk-search .form-control { border-radius: 14px; }
.tk-heading { font-size: 1.5rem; margin: 2rem 0 1rem; }
.tk-heading small, .tk-iyal small { color: var(--grey); font-weight: 400; font-size: .9rem; margin-left: .4rem; }
.tk-iyal { font-size: 1.1rem; margin: 1.25rem 0 .6rem; color: var(--brand-dark); }
.tk-chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .6rem; }
.tk-chip { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tk-chip:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.tk-chip-no { grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.tk-chip-name { font-weight: 600; }
.tk-chip-en { color: var(--grey); font-size: .82rem; }
.tk-today { background: var(--bg-alt); border-radius: 20px; padding: 1.25rem; margin: 1rem 0 1.5rem; }
.tk-crumbs { color: var(--grey); font-size: .92rem; margin: 1rem 0 .4rem; }
.tk-chapter-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.tk-chapter-head h2 { font-size: 1.9rem; margin: 0; }
.tk-num { display: block; font-size: .95rem; color: var(--brand); font-weight: 600; }
.kural-list { display: grid; gap: 1rem; }
.kural { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.4rem; scroll-margin-top: 90px; }
.kural:target { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(212, 80, 81, .15); }
.kural-top { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.kural-no { font-weight: 700; color: var(--brand); text-decoration: none; }
.kural-chapter { color: var(--grey); font-size: .88rem; }
main p.kural-lines { font-family: 'Noto Sans Tamil', var(--font-body); font-size: 1.3rem; font-weight: 600; line-height: 1.75; margin-bottom: .25rem; text-align: left; text-align-last: left; }
main p.kural-translit { color: var(--grey-2); font-size: .88rem; font-style: italic; margin-bottom: .75rem; text-align: left; }
.kural-speak { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.kural-meaning { border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 10px; padding: .6rem .9rem; margin-top: .6rem; }
.kural-meaning.en { border-left-color: #6C8EBF; }
.kural-meaning h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); margin: 0 0 .25rem; font-family: var(--font-body); }
.kural-meaning h3 small { text-transform: none; letter-spacing: 0; }
main .kural-meaning p { margin: 0; line-height: 1.6; text-align: left; text-align-last: left; }
.tk-pager { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.tk-credit { color: var(--grey-2); font-size: .82rem; margin-top: 2.5rem; }

/* ---------- Tamil grammar ---------- */
.tg-toc { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1.5rem; }
.tg-toc a { padding: .35rem .8rem; border-radius: 999px; background: var(--bg-alt); color: var(--ink); text-decoration: none; font-size: .9rem; }
.tg-toc a:hover { background: var(--brand-soft); color: var(--brand); }
.tg-lesson { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; margin-bottom: 1.5rem; scroll-margin-top: 90px; }
.tg-lesson h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.tg-lesson h2 small, .tg-lesson h3 small { color: var(--grey); font-weight: 400; font-size: .85rem; margin-left: .3rem; }
.tg-lesson h3 { font-size: 1.1rem; margin: 1.1rem 0 .6rem; }
main p.tg-intro { text-align: left; text-align-last: left; color: var(--grey); }
.tg-letters { display: flex; flex-wrap: wrap; gap: .5rem; }
.tg-letter, .tg-cell, .tg-word { border: 2px solid var(--line); background: #fff; border-radius: 12px; font-family: 'Noto Sans Tamil', var(--font-body); color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s; }
.tg-letter { width: 3.4rem; height: 3.4rem; font-size: 1.6rem; font-weight: 600; }
.tg-letter:hover, .tg-cell:hover, .tg-word:hover, .tg-letter.is-speaking, .tg-cell.is-speaking, .tg-word.is-speaking { border-color: var(--brand); background: var(--brand-soft); }
.tg-chart-wrap { overflow-x: auto; }
.tg-chart { border-collapse: separate; border-spacing: 4px; }
.tg-chart th { text-align: center; color: var(--brand); font-family: 'Noto Sans Tamil', var(--font-body); font-size: 1.1rem; padding: .2rem .4rem; }
.tg-cell { width: 2.8rem; height: 2.6rem; font-size: 1.15rem; }
.tg-table { border-collapse: collapse; margin-top: .75rem; min-width: 520px; }
.tg-table th, .tg-table td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; }
.tg-table thead th { background: var(--bg-alt); font-size: .9rem; }
.tg-word { padding: .25rem .6rem; font-size: 1.05rem; }
.tg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.tg-item { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; background: var(--bg-alt); border-radius: 12px; }
.tg-text { display: flex; flex-direction: column; gap: .15rem; }
.tg-text strong { font-family: 'Noto Sans Tamil', var(--font-body); font-size: 1.12rem; }
.tg-ex { font-family: 'Noto Sans Tamil', var(--font-body); }
.tg-en { color: var(--grey); font-size: .92rem; }
@media (max-width: 575.98px) {
    .tk-search { flex-direction: column; }
    .tg-letter { width: 3rem; height: 3rem; font-size: 1.4rem; }
    .tg-lesson { padding: 1.1rem; }
    .kural { padding: 1rem; }
    main p.kural-lines { font-size: 1.12rem; }
}
@media (max-width: 575.98px) { .kural-speak .km-speak .km-speak-text, .tk-chapter-head .km-speak .km-speak-text { display: inline; } .kural-speak .km-speak { padding: .3rem .7rem .3rem .5rem; } }
.km-voice-note { display: inline-block; margin: .4rem 0 0 .5rem; background: #FFF6E5; border: 1px solid #F1D29A; color: #7A5600; border-radius: 10px; padding: .35rem .65rem; font-size: .85rem; max-width: 28rem; vertical-align: middle; }
.tg-letters .km-voice-note, .tg-chart .km-voice-note { display: none; }
/* உயிர்மெய் chart: boxes grow with the letter (கொ, கௌ, ணை are wide); each column takes its widest letter */
.tg-chart td { padding: 0; }
.tg-cell { width: 100%; min-width: 2.8rem; height: 2.6rem; padding: 0 .45rem; white-space: nowrap; display: flex; align-items: center; justify-content: center; }
@media (max-width: 575.98px) { .tg-cell { min-width: 2.5rem; height: 2.4rem; padding: 0 .3rem; font-size: 1.05rem; } }

/* ---------- Learn English grammar ---------- */
.eg-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; margin: .5rem 0 2rem; }
.eg-levels a { display: flex; flex-direction: column; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.eg-levels a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.eg-levels strong { font-family: var(--font-head); }
.eg-levels span { color: var(--grey); font-size: .85rem; }
.eg-level { margin-bottom: 2.5rem; scroll-margin-top: 90px; }
.eg-level-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem; margin-bottom: 1rem; border-bottom: 2px solid var(--brand-soft); padding-bottom: .6rem; }
.eg-level-head h2 { font-size: 1.7rem; margin: 0; }
.eg-lessons { display: grid; gap: .7rem; }
.eg-lesson { background: #fff; border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 90px; }
.eg-lesson[open] { box-shadow: var(--shadow); border-color: #E8C5C5; }
.eg-lesson summary { cursor: pointer; padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; list-style: none; position: relative; padding-right: 2.5rem; }
.eg-lesson summary::-webkit-details-marker { display: none; }
.eg-lesson summary::after { content: '+'; position: absolute; right: 1.1rem; top: .85rem; font-size: 1.4rem; color: var(--brand); line-height: 1; }
.eg-lesson[open] summary::after { content: '−'; }
.eg-title { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.eg-intro { color: var(--grey); font-size: .95rem; }
.eg-body { padding: 0 1.1rem 1.1rem; }
.eg-rules { margin: 0 0 .75rem; padding-left: 1.2rem; }
.eg-rules li { margin-bottom: .3rem; line-height: 1.55; }
.eg-sub { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); margin: 1rem 0 .5rem; font-family: var(--font-body); }
.eg-examples { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.eg-examples li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: var(--bg-alt); border-radius: 10px; padding: .55rem .8rem; }
.eg-ex { font-weight: 500; }
.eg-note { display: block; color: var(--grey); font-size: .86rem; }
.eg-wrong { border-left: 4px solid #E0A2A3; }
.eg-table { min-width: 480px; }
.eg-table th[scope="row"] { white-space: nowrap; }
.eg-lessons { grid-template-columns: minmax(0, 1fr); }
.eg-lesson, .eg-body { min-width: 0; }

/* ---------- Devotional songs: main singer / co-singers / everyone ---------- */
.song-line { display: flex; align-items: baseline; gap: .55rem; width: 100%; text-align: left; border: 0; border-radius: 10px; padding: .4rem .7rem; margin: .12rem 0; font: inherit; line-height: 1.6; color: var(--ink, #2A2B2D); background: transparent; }
.song-line .song-who { flex: 0 0 auto; font-size: .9em; }
.song-line.main { font-weight: 600; border-left: 4px solid #D45051; background: #FDF1F1; }
.song-line.group { margin-left: 2rem; width: calc(100% - 2rem); border-left: 4px solid #4A78C2; background: #EEF3FB; color: #22457E; font-style: italic; }
.song-line.all { justify-content: center; text-align: center; font-weight: 700; border: 2px dashed #E3B341; background: #FFF8E6; color: #7A5600; }
.song-verse { margin-bottom: 1.1rem; }
button.song-line { cursor: pointer; transition: filter .12s, box-shadow .12s; }
button.song-line:hover { filter: brightness(.97); }
button.song-line.is-speaking { box-shadow: 0 0 0 3px rgba(212, 80, 81, .35); }
.song-title { font-size: 2rem; margin: .3rem 0 .2rem; }
.song-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin: 1rem 0; position: sticky; top: 72px; z-index: 5; background: rgba(255, 255, 255, .95); padding: .5rem 0; }
.song-legend { display: flex; flex-wrap: wrap; gap: .4rem; }
.song-legend .song-line { width: auto; margin: 0; padding: .2rem .6rem; font-size: .85rem; }
.song-controls { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.song-lyrics-view { font-family: 'Noto Sans Tamil', var(--font-body); font-size: 1.15rem; }
.song-deities { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0 1rem; }
.song-deities a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; }
.song-deities a small { color: var(--grey); margin-left: .2rem; }
.song-deities a.active, .song-deities a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.song-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; }
.song-card { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.song-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.song-card strong { font-family: 'Noto Sans Tamil', var(--font-head); font-size: 1.15rem; }
.song-type { font-size: .78rem; font-weight: 600; color: var(--brand); }
.song-credit { font-size: .82rem; color: var(--grey-2); }
@media (max-width: 575.98px) { .song-line.group { margin-left: 1rem; width: calc(100% - 1rem); } .song-bar { top: 64px; } }
/* Eight menu items: keep one line on 14-inch laptops */
.navbar .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1440px) { .nav-link { padding: .5rem .55rem !important; font-size: .95rem; } .navbar .ms-lg-3 { margin-left: .6rem !important; } }
.song-no { flex: 0 0 auto; min-width: 2.1rem; padding: 0 .35rem; border-radius: 999px; background: #D45051; color: #fff; font-size: .78em; font-weight: 700; text-align: center; font-family: var(--font-body); line-height: 1.7; }
/* Song recording: plays inside the page (YouTube privacy-enhanced player, loaded on Play) */
.song-video { position: relative; aspect-ratio: 16 / 9; margin: 1rem 0 .4rem; border-radius: 16px; overflow: hidden; background: #111; box-shadow: var(--shadow); }
.song-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.song-video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #111; cursor: pointer; color: #fff; }
.song-video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .15s; }
.song-video-play:hover img, .song-video-play:focus-visible img { opacity: .9; }
.song-video-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 4.2rem; height: 4.2rem; border-radius: 50%; background: #D45051; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; padding-left: .25rem; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.song-video-text { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-weight: 600; text-align: left; }
.song-credit-line { font-size: .85rem; color: var(--grey-2); margin-bottom: 1rem; }
.song-listen { font-size: .78rem; font-weight: 600; color: #D45051; }
