/*
Theme Name: EarnOnlineEdu
Theme URI: https://earnonlineedu.com
Author: EarnOnlineEdu Team
Author URI: https://earnonlineedu.com
Description: Custom WordPress theme for EarnOnlineEdu — practical guides on freelancing, AI online earning, high-income skills, and fully funded scholarships. Converted from the original static HTML/CSS/JS site, preserving the original design, layout, and AJAX page-transition behavior. Every page, post, and (with Elementor Pro) the header/footer/archive/404 can be edited with Elementor.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: earnonlineedu
Tags: blog, custom-logo, custom-menu, featured-images, translation-ready

This theme, including all CSS and JS files, is licensed under GPL v2 or later.

============================================
   Original stylesheet content below,
   preserved as-is from the source site.
   ============================================
*/

/* ============================================
   EarnOnlineEdu — Design Tokens
   ============================================ */
:root {
  --teal: #008080;
  --teal-deep: #005f5f;
  --teal-pale: #e8f4f2;
  --ink: #1a2e2e;
  --ink-soft: #4a5d5d;
  --amber: #f7c744;
  --amber-deep: #d9a91f;
  --white: #ffffff;
  --border: #d7e6e4;

  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1180px;
  --transition: 220ms ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Page transition fade (used by ajax-nav.js)
   ============================================ */
#page-content {
  animation: fadeIn 320ms ease;
}

#page-content.is-leaving {
  animation: fadeOut 180ms ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  #page-content, #page-content.is-leaving {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================
   Top loading bar (AJAX nav indicator)
   ============================================ */
#nav-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--amber);
  z-index: 9999;
  transition: width 280ms ease, opacity 200ms ease;
  opacity: 0;
}

#nav-progress.is-active { opacity: 1; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  position: relative;
  flex-shrink: 0;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: var(--amber);
}

.logo-mark::before {
  width: 14px;
  height: 3px;
  top: 14px;
  left: 10px;
  border-radius: 2px;
}

.logo-mark::after {
  width: 3px;
  height: 14px;
  top: 10px;
  left: 14px;
  border-radius: 2px;
}

.logo-text-edu { color: var(--teal); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--teal);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: var(--transition);
}

/* ============================================
   Hero — "Learning Path Ledger"
   ============================================ */
.hero {
  background: var(--teal-pale);
  padding: 64px 0 0;
  overflow: hidden;
}

.hero-top {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(0,128,128,0.08);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--teal); }

.hero p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* Track strip — horizontal scroll of category entry points */
.track-strip {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(0,95,95,0.15);
  background: var(--white);
  overflow-x: auto;
  scrollbar-width: none;
}
.track-strip::-webkit-scrollbar { display: none; }

.track {
  flex: 1 0 220px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}

.track:last-child { border-right: none; }

.track:hover { background: var(--teal-pale); }

.track-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}

.track-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.track-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,128,128,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ============================================
   Section headings
   ============================================ */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.section-head .view-all {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
}
.section-head .view-all:hover { text-decoration: underline; }

.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}

/* ============================================
   Article cards
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,95,95,0.12);
}

.card-img {
  aspect-ratio: 16/10;
  background: var(--teal-pale);
  overflow: hidden;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.card-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-soft);
}

.card-meta .date { color: var(--ink-soft); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 14px;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-deep);
}

/* ============================================
   Why / value props
   ============================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-item {
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.value-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber-deep);
  margin-bottom: 14px;
}

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ============================================
   Newsletter band
   ============================================ */
.newsletter-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.newsletter-band h2 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.newsletter-band p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
}

.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.newsletter-form input:focus { outline: 2px solid var(--amber); }

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 22px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a { color: var(--teal-deep); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================
   Blog post page
   ============================================ */
.post-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 0;
  text-align: left;
}

.post-category-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: var(--teal-pale);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 18px;
}

.post-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.18;
  margin-bottom: 18px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.post-byline strong { color: var(--ink); }

.post-cover {
  max-width: 880px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.post-cover img {
  border-radius: var(--radius-md);
  width: 100%;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.post-body p { margin-bottom: 18px; color: var(--ink-soft); font-size: 1rem; }

.post-body ul, .post-body ol {
  margin: 0 0 18px 22px;
  color: var(--ink-soft);
}
.post-body li { margin-bottom: 8px; }

.post-body strong { color: var(--ink); }

.pull-stat {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 0.95rem;
}

.pull-stat strong { color: var(--teal-deep); }

.post-cta {
  background: var(--ink);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  margin: 48px 0;
}

.post-cta h3 { color: var(--white); font-family: var(--font-display); margin-bottom: 8px; }
.post-cta p { color: rgba(255,255,255,0.65); margin-bottom: 20px; }

.toc-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 36px;
  background: var(--teal-pale);
}

.toc-box p.toc-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-deep);
  margin-bottom: 10px;
}

.toc-box ul { margin: 0; padding: 0; list-style: none; }
.toc-box li { margin-bottom: 6px; font-size: 0.88rem; }
.toc-box a { color: var(--ink-soft); }
.toc-box a:hover { color: var(--teal); }

/* ============================================
   Category page
   ============================================ */
.category-head {
  background: var(--teal-pale);
  padding: 40px 0 36px;
}

.category-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.category-head p {
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: 600px;
}

/* ============================================
   About / Contact page
   ============================================ */
.page-hero {
  background: var(--teal-pale);
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-grid h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.about-grid p { color: var(--ink-soft); margin-bottom: 16px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-info-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--teal-pale);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 320px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { font-weight: 600; color: var(--amber); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .newsletter-band { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .track-strip { flex-wrap: nowrap; }
}
