/* ========================================
   ProEarnly - Modern Earning Blog
   Design System & Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:wght@700;900&display=swap');

/* ---- CSS Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Custom Properties ---- */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-darker: #065f46;
  --primary-light: #d1fae5;
  --primary-lighter: #ecfdf5;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fef3c7;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

/* ---- Header & Navigation ---- */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-lighter);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--primary-lighter);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 50%, #10b981 100%);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--text-primary);
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

.btn-white {
  background: white;
  color: var(--primary-dark);
}

.btn-white:hover {
  background: var(--bg-secondary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ---- Category Tags ---- */
.category-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.category-tag {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
}

.category-tag:hover,
.category-tag.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.article-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-success-stories { background: #dbeafe; color: #1e40af; }
.cat-beginner-projects { background: #d1fae5; color: #065f46; }
.cat-money-making-ideas { background: #fef3c7; color: #92400e; }
.cat-common-pitfalls { background: #fce7f3; color: #9d174d; }

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

/* ---- Article Cards Grid ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.article-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.05);
}

.article-card-image .article-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.article-card-body {
  padding: 1.5rem;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.article-card-meta svg {
  width: 14px;
  height: 14px;
}

.article-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card h3 a {
  color: var(--text-primary);
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card-excerpt {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.read-more:hover {
  gap: 0.6rem;
}

/* ---- Featured Article ---- */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
  border: 1px solid var(--border-light);
}

.featured-article-image {
  height: 100%;
  min-height: 350px;
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-article-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-article-body .article-category {
  margin-bottom: 1rem;
}

.featured-article-body h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.featured-article-body h2 a {
  color: var(--text-primary);
}

.featured-article-body h2 a:hover {
  color: var(--primary);
}

.featured-article-body p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ---- Article Detail Page ---- */
.article-page {
  padding: 3rem 0;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-header .article-category {
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
}

.article-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--primary-lighter);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.article-content blockquote p {
  color: var(--primary-darker);
  margin-bottom: 0;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--primary-dark);
}

/* Key Takeaway Box */
.key-takeaway {
  background: linear-gradient(135deg, var(--primary-lighter), #d1fae5);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.key-takeaway h4 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

.key-takeaway p {
  color: var(--primary-darker);
  margin-bottom: 0;
}

/* ---- Related Articles ---- */
.related-articles {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-card-image {
  height: 140px;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-body {
  padding: 1rem;
}

.related-card-body .article-category {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

.related-card-body h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.related-card-body h4 a {
  color: var(--text-primary);
}

.related-card-body h4 a:hover {
  color: var(--primary);
}

/* ---- Tools Section ---- */
.tools-preview {
  background: var(--bg-primary);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.tool-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.tool-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ---- Tool Pages ---- */
.tool-page {
  padding: 3rem 0;
}

.tool-page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tool-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tool-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.tool-header p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Quiz Styles ---- */
.quiz-container {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.quiz-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.quiz-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 50px;
  transition: var(--transition);
}

.quiz-progress-bar.active {
  background: var(--primary);
}

.quiz-progress-bar.completed {
  background: var(--primary);
}

.quiz-question-number {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quiz-question {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.quiz-option:hover {
  border-color: var(--primary-light);
  background: var(--primary-lighter);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: var(--primary-lighter);
}

.quiz-option-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-option.selected .quiz-option-icon {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* Quiz Results */
.quiz-result {
  text-align: center;
  padding: 2rem 0;
}

.quiz-result-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.quiz-result h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.quiz-result p {
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto 2rem;
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  text-align: left;
  margin-top: 2rem;
}

.recommendation-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.recommendation-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.recommendation-card .rec-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.recommendation-card h4 {
  font-family: var(--font-body);
  margin-bottom: 0.5rem;
}

.recommendation-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.recommendation-card .match-score {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---- Calculator Styles ---- */
.calculator-container {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.calc-form {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-group small {
  font-size: 0.8rem;
  color: var(--text-light);
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.calc-results {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-lighter), #d1fae5);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-light);
}

.calc-results h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(5,150,105,0.15);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 0.95rem;
  color: var(--primary-darker);
}

.result-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.result-value.highlight {
  font-size: 1.5rem;
  color: var(--primary);
}

/* ---- Legal / Info Pages ---- */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-content h1 {
  margin-bottom: 0.5rem;
}

.page-content .last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
}

.page-content h3 {
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.page-content ul {
  list-style: disc;
  margin: 0.5rem 0 1.5rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Contact page */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.contact-card .contact-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-card a {
  color: var(--primary);
  font-weight: 500;
}

/* ---- Ad Placeholder ---- */
.ad-placeholder {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 2rem 0;
}

/* ---- Footer ---- */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer ul a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: white;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  color: var(--border);
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ---- Mobile Navigation ---- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.mobile-nav-overlay.show {
  display: block;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--bg-primary);
  z-index: 999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.mobile-nav.show {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem;
}

.mobile-nav ul {
  margin-top: 2rem;
}

.mobile-nav ul li {
  margin-bottom: 0;
}

.mobile-nav ul a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav ul a:hover {
  color: var(--primary);
}

.mobile-nav .sub-items a {
  padding-left: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-article-image {
    min-height: 250px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: 3rem 0;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quiz-container {
    padding: 1.5rem;
  }

  .calculator-container {
    padding: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .recommendations {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .article-featured-image img {
    height: 250px;
  }

  .tool-header h1 {
    font-size: 1.75rem;
  }
}
