@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Lato&display=swap');

:root {
  --color-primary: #36B497;  /* Teal Green */
  --color-accent: #FF8B3D;   /* Sunset Orange */
  --color-yellow: #F4D35E;   /* Optional pop */
  --color-dark: #333333;
  --color-light: #F9F9F9;
  --color-white: #ffffff;
}

h2 {
  text-align: center;
  font-size: 2.4rem;
  color: var(--color-dark);
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #2e9c80;
}

body {
  background-color: #f5f5f5;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
}

header {
  background: url('/images/header-bg.jpg') no-repeat center center;
  background-size: cover;
  padding: 40px 0;
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  animation: fadeOut 1s ease-in-out forwards;
}
@keyframes fadeOut {
  to {
    background: rgba(0, 0, 0, 0.5);
  }
}


header nav {
  position: relative;
  z-index: 2;
  text-align: center;
}

header nav a {
  color: #ffffffa3;
  text-decoration: none;
  margin: 0 15px;
}

header nav a:hover {
  color: #fff;
}

header nav a.active {
  color: #fff;
  border-bottom: 1px solid #fff;
}

header h1 {
  z-index: 2;
  color: #fff;
  text-align: center;
  position: relative;
  font-size: 2.5em;
}

header p {
  position: relative;
  z-index: 2;
  color: #ddd;
  text-align: center;
  font-size: 1.2em;

  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease-in-out forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  padding: 20px 0;
}

.content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

footer {
  background: #343a40;
  color: #ddd;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  header h1 { font-size: 2em; }
  header p { font-size: 1em; }
  header nav a { margin: 0 8px; }
}

/* -------------------- QUOTE SECTION ------------- */

.quote-section {
  padding: 60px 20px;
  text-align: center;
}

blockquote {
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.4rem;
  color: #444;
  position: relative;
}

blockquote footer {
  font-size: 1rem;
  color: #888;
  font-style: normal;
  background-color: transparent;
}

/* ----------------- HOME CATEGORIES --------------------------*/
.category-links {
  list-style: none;
}

.category-links li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
  background-color: #ffffffd5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.1s ease-in-out;
}

.category-links li a:hover {
  transform: translateY(-1px);
}


/* ------------------ ARTICLE PREVIEW ---------------- */



.card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card:hover img {
  filter: brightness(1);
}

.card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 180px;
  transition: 0.3s ease;
  filter: brightness(0.6);

}

.card-body {
  padding: 16px;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.card-body p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
}

.view-all-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.95rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.view-all-btn:hover {
  background-color: rgba(54, 180, 151, 0.1); /* leve highlight */
}


/* --------------- ARTICLES ------------------ */
.back-link {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  transition: color 0.3s;
}

.back-link:hover {
  color: #2e9c80;
}

/* -------------- ARTICLE: HOW TO SAVE MONEY FAST ----------- */


.content h3 {
  font-size: 1.25em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #1a1a1a;
  font-weight: 600;
  font-family: "Playfair Display", serif;
}

.content ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.content ul li {
  margin-bottom: 0.5em;
  font-size: 1em;
  line-height: 1.6;
}

.quick-tip {
  background-color: #f9f9f9;
  border-left: 4px solid #4a90e2;
  padding: 1em;
  margin: 1.5em 0;
  font-style: italic;
  font-size: 0.95em;
  color: #444;
}

.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 6px;
}

.caption {
  text-align: center;
  font-size: 0.9em;
  color: gray;
  margin-top: -1em;
  margin-bottom: 2em;
}

/* TRAKING TOOLS */
.toolbox {
  padding: 0  20px;
  margin: 2em 0;
  border-radius: 8px;
}

.toolbox h3 {
  margin-bottom: 1em;
  font-size: 1.3em;
  color: #1a1a1a;
  font-weight: 600;
}

.tools-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.tools-list li {
  margin-bottom: 1em;
  font-size: 1em;
  line-height: 1.6;
}

.tools-list a {
  text-decoration: none;
  font-weight: bold;
}

.tools-list a:hover {
  text-decoration: underline;
}


/* TRAKING TOOLS */
.tool-sections {
  margin: 2em 0;
}

.tool-sections h3 {
  margin: 1.5em 0 1em;
  font-size: 1.2em;
  color: #333;
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.free .tool-card {
  flex: 1 1 280px;
  background: #fefff9;
  border-radius: 8px;
  padding: 1.2em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.premium .tool-card {
  flex: 1 1 280px;
  background: #fffef9;
  border-radius: 8px;
  padding: 1.2em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tool-card h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.1em;
  color: #1a1a1a;
}

.tool-card p {
  font-size: 0.95em;
  color: #444;
  line-height: 1.5;
  margin-bottom: 1em;
}

.free .tool-cta {
  display: inline-block;
  color: #62a673;
  padding: 8px 0;
  text-decoration: none;
  border-radius: 23px;
  font-weight: bold;
}

.free .tool-cta:hover {
  color: #6bb87e;
}

.premium .tool-cta {
  display: inline-block;
  color: #ecce41;
  padding: 8px 0;
  text-decoration: none;
  border-radius: 23px;
  font-weight: bold;
}

.premium .tool-cta:hover {
  color: #e3d533;
}