/* =================================================
   Everybody Counts — custom.css
   Accent: #7c3aed (purple)
   Theme: Light (Ed-Tech)
   ================================================= */

/* ---- CSS Variables ---- */
:root {
    --bg: #f8f9fa;
    --surface: #ffffff;
    --surface2: #f0f2f5;
    --text: #1e293b;
    --text-muted: #64748b;
    --accent: #7c3aed;
    --accent-dark: #6d28d9;
    --accent-light: #ede9fe;
    --border: rgba(0,0,0,0.08);
    --radius: 12px;
    --gap: 40px;
    --nav-height: 72px;
}

/* ---- Base ---- */
body {
    color: var(--text) !important;
    background-color: var(--bg) !important;
    font-size: 18px;
    line-height: 1.9;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
    letter-spacing: normal !important;
    color: var(--text);
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

section, .section { color: var(--text); }

.card, .panel, [class*="card"], [class*="panel"] {
    color: var(--text);
}

/* ---- Nav Override ---- */
.navbar .nav-link {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--text) !important;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent) !important;
}

/* Brand / Logo */
.navbar-brand-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent) !important;
    text-decoration: none;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    background: var(--accent);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}
.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
}
.page-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    margin-top: 12px;
}

/* ---- Section Labels ---- */
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ---- Hero (homepage) ---- */
.hero-section {
    min-height: 640px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 100px 0;
}
.hero-section h1 {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    max-width: 680px;
}
.hero-section p {
    font-size: 20px;
    color: rgba(255,255,255,0.88);
    max-width: 560px;
    margin: 20px 0 36px;
    line-height: 1.7;
}
.hero-section .section-label {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
}

/* ---- Buttons ---- */
.btn-primary-custom,
.btn-primary {
    display: inline-block;
    background: #fff;
    color: var(--accent) !important;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid #fff;
    transition: background 0.2s, color 0.2s;
}
.btn-primary-custom:hover,
.btn-primary:hover {
    background: transparent;
    color: #fff !important;
}

.btn-secondary-custom,
.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.6);
    transition: border-color 0.2s, background 0.2s;
    margin-left: 12px;
}
.btn-secondary-custom:hover,
.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Accent buttons (on light bg) */
.btn-accent {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--accent);
    transition: background 0.2s;
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff !important;
}

.btn-outline-accent {
    display: inline-block;
    background: transparent;
    color: var(--accent) !important;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--accent);
    transition: background 0.2s, color 0.2s;
    margin-left: 12px;
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff !important;
}

/* ---- General Sections ---- */
.section-light {
    background: var(--surface);
    color: var(--text);
    padding: 80px 0;
}
.section-alt {
    background: var(--surface2);
    color: var(--text);
    padding: 80px 0;
}
.section-dark {
    background: var(--accent);
    color: #fff;
    padding: 80px 0;
}
.section-dark h2, .section-dark h3, .section-dark p {
    color: #fff;
}

/* ---- Section Headings ---- */
.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
}

/* ---- Feature Cards ---- */
.feature-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    height: 100%;
}
.feature-card .feature-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
}

/* ---- Steps ---- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 48px;
}
.step {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
}
.step-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}
.step h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.step p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- Stats / Metrics ---- */
.stats-row {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 40px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ---- Team Cards ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 48px;
}
.team-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
}
.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 10%;
    margin-bottom: 20px;
    border: 4px solid var(--accent-light);
}
.team-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.team-role {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.team-bio {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}
.team-email {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}
.team-email:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 48px;
    align-items: start;
}
.pricing-card {
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    position: relative;
    transition: transform 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
    border-color: var(--accent);
    background: var(--surface);
}
.pricing-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pricing-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin: 12px 0;
}
.pricing-price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.pricing-features li {
    font-size: 15px;
    color: var(--text);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.pricing-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent);
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ---- FAQ Accordion ---- */
.faq-section {
    background: var(--surface2);
    color: var(--text);
    padding: 80px 0;
}
.faq-section h2 { color: var(--text); }
.accordion-button {
    font-size: 17px;
    font-weight: 600;
    color: var(--text) !important;
    background: var(--surface) !important;
}
.accordion-button:not(.collapsed) {
    color: var(--accent) !important;
    background: var(--surface) !important;
}
.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.accordion-body {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    background: var(--surface);
}

/* ---- Blog Cards ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
}
.blog-grid > [class*="col-"] {
    display: flex;
}

.blog-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(124,58,237,0.12);
    text-decoration: none;
}
.blog-card-img {
    width: 100%;
    height: 200px;
    background: var(--surface2);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-style: italic;
}
.blog-card-body {
    padding: 24px;
    flex: 1;
}
.blog-card time {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}
.blog-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ---- About Values ---- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.value-card {
    background: var(--surface);
    color: var(--text);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px 28px;
}
.value-card .value-icon {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 12px;
}
.value-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.value-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ---- Contact ---- */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 16px;
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list li i {
    color: var(--accent);
    font-size: 18px;
    margin-top: 2px;
    width: 20px;
    flex-shrink: 0;
}
.contact-list a {
    color: var(--accent);
    text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

.contact-form .form-control {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text);
    background: var(--surface);
}
.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
    outline: none;
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--accent);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 { color: #fff; font-size: 40px; font-weight: 700; }
.cta-section p { color: rgba(255,255,255,0.88); font-size: 18px; margin: 16px 0 32px; }

/* ---- Investment / Backed By ---- */
.backed-section {
    background: var(--surface2);
    color: var(--text);
    padding: 60px 0;
    text-align: center;
}
.backed-section h2 { color: var(--text); }
.backed-section p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.funding-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 24px;
    margin-top: 24px;
}

/* ---- Footer ---- */
.site-footer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 60px 0 30px;
}
.site-footer h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.site-footer p { font-size: 15px; color: #94a3b8; line-height: 1.75; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { font-size: 15px; color: #94a3b8; text-decoration: none; }
.site-footer ul li a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p { font-size: 14px; color: #64748b; margin: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Cookie Banner ---- */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px 28px;
    z-index: 9999;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}
.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.cookie-text strong { color: #fff; font-size: 15px; display: block; margin-bottom: 4px; }
.cookie-text p { font-size: 14px; color: #94a3b8; margin: 0; line-height: 1.5; }
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
#cookie-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
#cookie-accept:hover { background: var(--accent-dark); }
#cookie-decline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
#cookie-decline:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-section h1 { font-size: 42px; }
    .section-title { font-size: 32px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .hero-section h1 { font-size: 32px; }
    .btn-secondary-custom, .btn-secondary { margin-left: 0; margin-top: 12px; }
    .steps-grid { grid-template-columns: 1fr; }
}

/* ---- Nav top bar override for multi-page nav ---- */
.tm-nav-top {
    background: #fff;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}
.tm-nav-top .navbar-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent) !important;
    text-decoration: none;
    white-space: nowrap;
}
.tm-nav-top .nav-link {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--text) !important;
    padding: 8px 14px !important;
}
.tm-nav-top .nav-link:hover,
.tm-nav-top .nav-link.active {
    color: var(--accent) !important;
}
.tm-nav-top .navbar-toggler { border-color: var(--border); }

/* ---- Breadcrumb back link ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 20px;
}
.back-link:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---- Image placeholder ---- */
.img-placeholder {
    width: 100%;
    background: var(--surface2);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-style: italic;
    border-radius: var(--radius);
    min-height: 280px;
}

/* ============================================================
   ARTICLE / LEGAL CONTENT WIDTH (max 720px centered)
   ============================================================ */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Site Logo */
.site-logo { height: 36px; width: auto; vertical-align: middle; margin-right: 8px; }

/* Nav menu-trigger inline fix */
.navicon { float: none !important; margin-left: auto !important; }
.menu-trigger {
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: auto !important;
  height: auto !important;
}
.menu-trigger .icon {
  font-size: 20px;
  line-height: 1;
}
.menu-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Nav row flex fix */
.navbar .row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
}
.brand { float: none !important; }
