/* absolutesaver.com - Money Saving & Frugal Living Theme */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --secondary: #0d9488;
  --accent: #fbbf24;
  --bg-light: #f0fdf4;
  --bg-card: #ffffff;
  --text-dark: #14532d;
  --text-light: #4b5563;
  --gradient: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
  --gradient-soft: linear-gradient(135deg, #dcfce7 0%, #ccfbf1 100%);
  --shadow: 0 4px 20px rgba(22, 163, 74, 0.12);
  --shadow-lg: 0 10px 40px rgba(22, 163, 74, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: 400; }

/* Navbar */
.navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  padding: 0.8rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(20, 83, 45, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .logo-icon { font-size: 1.6rem; }

.navbar-menu {
  display: flex;
  gap: 0.3rem;
  list-style: none;
}

.navbar-menu a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.navbar-menu a:hover, .navbar-menu a.active {
  background: rgba(22, 163, 74, 0.1);
  color: var(--primary);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
}

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; padding: 0.8rem 1rem; }
  .navbar-toggle { display: block; }
  .navbar-menu { display: none; width: 100%; flex-direction: column; padding: 0.8rem 0; gap: 0.2rem; }
  .navbar-menu.active { display: flex; }
  .navbar-menu a { padding: 0.6rem 0.8rem; }
}

/* Hero */
.hero {
  background: var(--gradient);
  padding: 9rem 2rem 6rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '💰';
  position: absolute;
  font-size: 18rem;
  opacity: 0.12;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  position: relative;
  font-weight: 400;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 2.5rem;
  position: relative;
}

.hero-stats .stat { text-align: center; }
.hero-stats .stat-number { font-size: 2.8rem; font-weight: 700; display: block; }
.hero-stats .stat-label { font-size: 0.9rem; opacity: 0.9; font-weight: 300; }

@media (max-width: 768px) {
  .hero { padding: 7rem 1rem 4rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 2rem; }
}

/* Sections */
.section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--gradient-soft); }

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
  font-weight: 400;
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.35s;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.35s;
}

.tool-card:hover {
  border-color: rgba(22, 163, 74, 0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.2rem;
  transition: transform 0.35s;
}

.tool-card:hover .tool-icon { transform: scale(1.1); }

.tool-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.tool-card p { font-size: 0.88rem; color: var(--text-light); }

/* Article Cards */
.article-list { display: grid; gap: 2rem; }

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 320px 1fr;
  transition: all 0.35s;
}

.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.article-img {
  height: 100%;
  min-height: 240px;
  background-size: cover;
  background-position: center;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.article-content { padding: 2rem; }

.article-category {
  display: inline-block;
  background: var(--gradient-soft);
  color: var(--primary);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.article-card h2 { font-size: 1.5rem; margin-bottom: 0.8rem; font-family: 'DM Serif Display', serif; }
.article-card h2 a { color: var(--text-dark); text-decoration: none; }
.article-card h2 a:hover { color: var(--primary); }

.article-excerpt { color: var(--text-light); margin-bottom: 1.2rem; font-size: 0.95rem; line-height: 1.6; }

.article-meta { display: flex; gap: 1.2rem; font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.read-more:hover { gap: 0.8rem; }

@media (max-width: 768px) {
  .article-card { grid-template-columns: 1fr; }
  .article-img { height: 200px; font-size: 4rem; }
}

/* Article Page */
.article-page { max-width: 850px; margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.article-header { margin-bottom: 2.5rem; text-align: center; }
.article-header h1 { font-size: 2.8rem; margin-bottom: 1rem; line-height: 1.3; }

.article-body { font-size: 1.1rem; line-height: 1.95; color: #374151; }
.article-body h2 { font-size: 1.7rem; margin: 2.5rem 0 1rem; color: var(--primary); font-family: 'DM Serif Display', serif; }
.article-body h3 { font-size: 1.3rem; margin: 2rem 0 0.8rem; color: var(--text-dark); }
.article-body p { margin-bottom: 1.6rem; }
.article-body ul, .article-body ol { margin: 1.5rem 0; padding-left: 2rem; }
.article-body li { margin-bottom: 0.8rem; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1.2rem 1.8rem;
  background: rgba(22, 163, 74, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2.5rem 0;
  font-style: italic;
  font-size: 1.15rem;
}

/* Tool Page */
.tool-page { max-width: 900px; margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.tool-header { text-align: center; margin-bottom: 3rem; }
.tool-header .tool-icon-large {
  width: 100px;
  height: 100px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
}
.tool-header h1 { font-size: 2.4rem; margin-bottom: 0.8rem; }
.tool-header p { color: var(--text-light); font-size: 1.05rem; }

.tool-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.tool-form { display: grid; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.6rem; }
.form-group label { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.9rem 1.1rem;
  border: 2px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); }

.btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(22, 163, 74, 0.35); }

.result-box {
  background: rgba(22, 163, 74, 0.06);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-top: 1.8rem;
  display: none;
}
.result-box.show { display: block; }
.result-value { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.result-label { color: var(--text-light); font-size: 0.9rem; }

/* Page Headers */
.page-header {
  background: var(--gradient-soft);
  padding: 8rem 2rem 4rem;
  text-align: center;
}
.page-header h1 { font-size: 2.6rem; margin-bottom: 0.8rem; color: var(--text-dark); }
.page-header p { font-size: 1.15rem; color: var(--text-light); }

/* Footer */
.footer {
  background: #14532d;
  color: #fff;
  padding: 5rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.footer h4 { 
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem; 
  color: #86efac;
  font-weight: 400;
}
.footer p { color: #9ca3af; font-size: 0.95rem; line-height: 1.8; }
.footer a { color: #d1d5db; text-decoration: none; display: block; padding: 0.35rem 0; transition: color 0.3s; }
.footer a:hover { color: #86efac; }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Legal Pages */
.legal-content { max-width: 800px; margin: 0 auto; padding: 4rem 1.5rem; }
.legal-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--primary); font-family: 'DM Serif Display', serif; }
.legal-content p { margin-bottom: 1.2rem; color: var(--text-light); line-height: 1.8; }

/* Breadcrumbs */
.breadcrumbs { padding: 1.2rem 2rem; max-width: 1200px; margin: 0 auto; font-size: 0.9rem; color: var(--text-light); }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Related Articles */
.related-articles { margin-top: 4rem; padding-top: 2.5rem; border-top: 2px solid #e5e7eb; }
.related-articles h3 { font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--text-dark); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.related-grid .card { background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: all 0.3s; }
.related-grid .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.related-grid .card h4 { font-size: 1rem; margin-bottom: 0.4rem; font-family: 'Inter', sans-serif; }
.related-grid .card h4 a { color: var(--text-dark); text-decoration: none; }
.related-grid .card h4 a:hover { color: var(--primary); }
.related-grid .card p { font-size: 0.85rem; color: var(--text-light); }

/* Header Gradient */
.header-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: var(--gradient);
  min-height: 300px;
  color: #fff;
}

/* CTA */
.cta-section {
  background: var(--gradient);
  padding: 5rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 3rem 0;
}
.cta-section h2 { font-size: 2.2rem; margin-bottom: 1rem; color: #fff; }
.cta-section p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.95; color: #fff; }

/* Utilities */
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
