/* ================================
   TheFlowMinds – Global Design System
   Centralized master stylesheet
===================================*/

/* -------- 1. Root Variables -------- */
:root {
  /* Brand palette */
  --tfm-primary: #4a3d9a;
  --tfm-primary-dark: #3c317f;
  --tfm-primary-light: #eceaff;

  --tfm-secondary: #1752a1;
  --tfm-secondary-light: #e6f0ff;
  --tfm-accent: #108cce;
  --tfm-dark: #0f172a;

  /* Neutrals */
  --tfm-text: #1a1a1a;
  --tfm-muted: #6a6a6a;
  --tfm-border: #e0e3eb;
  --tfm-bg: #fafafc;
  --tfm-card-bg: #ffffff;
  --tfm-shadow: rgba(15, 23, 42, 0.06);

  /* Status */
  --tfm-success: #2e7d32;
  --tfm-warning: #f9a825;
  --tfm-danger: #c62828;

  /* Gradients */
  --tfm-grad-1: linear-gradient(135deg, #4a3d9a 0%, #1752a1 100%);
  --tfm-grad-2: linear-gradient(135deg, #1752a1 0%, #108cce 100%);
  --tfm-grad-soft: linear-gradient(135deg, #f4f5ff 0%, #fafafc 100%);

  /* Spacing scale */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 36px;
  --space-xl: 60px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* -------- 2. Global Reset / Base -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--tfm-bg);
  color: var(--tfm-text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

/* Utility containers */
.container,
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Generic text helpers */
.lead,
.hero-subtitle,
.hero-sub {
  font-size: 1.02rem;
  color: var(--tfm-accent);
  max-width: 780px;
}

/* -------- 3. Header & Navigation -------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #f5f7fc;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tfm-border);
  transition: box-shadow 0.25s ease;
}

header.scrolled {
  box-shadow: 0 8px 30px var(--tfm-shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wrap img {
  height: 70px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--tfm-grad-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tfm-muted);
  padding: 4px 0;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.nav a:hover {
  font-weight: bold;
  transform: translateY(-1px);
}

.nav a.active {
  background: rgba(23, 82, 161, 0.08);
  color: var(--tfm-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  border-radius: 999px;
}

.nav-cta {
  background: linear-gradient(135deg, #4a3d9a 0%, #1752a1 100%) !important;
  color: #ffffff !important;
  padding: 10px 32px !important; /* <-- FIXED */
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(74, 61, 154, 0.45);
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* -------- 4. Hero Sections -------- */

.hero-inner,
.hero-content {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.45rem;
  font-weight: 800;
  margin: 0 0 var(--space-sm);
  background: var(--tfm-grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle,
.hero-sub {
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: #1f3a72; /* darker blue, still on-brand */
}

/* Kicker text used on some pages (DCS, etc.) */
.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tfm-secondary);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

/* Homepage specific bits use these */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-sm);
}

.trust-strip {
  margin-top: var(--space-md);
  font-size: 0.86rem;
  color: var(--tfm-muted);
}

/* v5 new hero section */
/* HERO – v6 (darker, more premium) */
.hero {
  margin-top: 70px; /* space below fixed header */
  padding: 96px 0 60px;
  background: radial-gradient(
    circle at 72% 40%,
    rgba(74, 61, 154, 0.16) 0%,
    rgba(23, 82, 161, 0.1) 35%,
    #ffffff 78%
  );
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(148, 163, 255, 0.22) 0%,
    transparent 70%
  );
  top: -180px;
  right: -140px;
  opacity: 0.7;
}

/* keep the existing layout */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-copy {
  flex: 1.1;
}

.hero-visual {
  flex: 1;
  max-width: 420px;
}

.hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 50px rgba(15, 23, 42, 0.14));
  border-radius: 28px;
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: left;
  }

  .hero-visual {
    max-width: 360px;
    align-self: center;
    margin-top: 16px;
  }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-copy {
  flex: 1.1;
}

.hero-visual {
  flex: 1;
  max-width: 420px;
}

.hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 50px rgba(15, 23, 42, 0.12));
  border-radius: 28px;
}

/* responsive */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: left;
  }

  .hero-visual {
    max-width: 360px;
    align-self: center;
    margin-top: 16px;
  }
}

/* -------- 5. Buttons -------- */

.btn-primary,
.btn-secondary,
.btn-outline,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary,
.cta-button {
  background: var(--tfm-grad-1);
  color: #fff;
  box-shadow: 0 12px 35px rgba(74, 61, 154, 0.38);
}

.btn-primary:hover,
.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(74, 61, 154, 0.45);
}

.cta-button.active {
  border-radius: 999px !important; /* keeps pill shape */
  padding: 16px 32px !important; /* keep the same size */
}

.btn-secondary {
  background: #fff;
  color: var(--tfm-secondary);
  border-color: var(--tfm-border);
}

.btn-secondary:hover {
  border-color: var(--tfm-secondary);
  background: var(--tfm-secondary-light);
}

.btn-outline {
  background: transparent;
  color: var(--tfm-secondary);
  border-color: var(--tfm-secondary);
}

.btn-outline:hover {
  background: rgba(23, 82, 161, 0.06);
}

/* -------- 6. Sections / Layout -------- */

.section {
  max-width: 1200px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
  color: var(--tfm-primary-dark);
}

.section-header p {
  margin: 0;
  color: var(--tfm-muted);
  font-size: 0.98rem;
}

/* Generic grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.steps-grid,
.solutions-grid,
.why-grid,
.pain-bullets,
.saudi-list,
.expectations-grid,
.audience-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-md);
  align-items: stretch; /* key fix */
}

.pain-bullet {
  max-width: 260px;
  padding: 16px 20px;
}

.pain-bullet p {
  color: var(--tfm-muted);
}

.solutions-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* -------- 7. Generic Cards -------- */

.card,
.solution-card,
.pricing-card,
.addon-card,
.faq-item,
.audience-card,
.expectation-card,
.pillar-card,
.principles-list li,
.saudi-list-item,
.pain-bullet,
.why-item,
.post-card {
  background: var(--tfm-card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--tfm-border);
  box-shadow: 0 12px 30px var(--tfm-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  height: 100%; /* makes every card fill the full track */
  width: 100%;
}

.pain-bullet {
  max-width: 260px; /* adjust as you like */
  width: 100%;
}

.card:hover,
.solution-card:hover,
.pricing-card:hover,
.addon-card:hover,
.faq-item:hover,
.audience-card:hover,
.expectation-card:hover,
.pillar-card:hover,
.principles-list li:hover,
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border-color: var(--tfm-primary);
}

/* Center all items */
.solutions-grid {
  align-items: stretch; /* fixes height */
}

/* Common headings inside cards */
.card h3,
.solution-card h3,
.pricing-card h3,
.addon-card h3,
.audience-card h3,
.expectation-card h3,
.pillar-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
  font-size: 1.05rem;
  color: var(--tfm-primary-dark);
}

/* Muted text helper */
.muted {
  color: var(--tfm-muted);
}

.solution-features li,
.pricing-features li,
.why-item p,
.faq-item p {
  color: var(--tfm-muted);
}

/* -------- 8. Homepage Specific Layouts (index.html) -------- */

/* Saudi examples block */
.saudi-examples {
  background: #fff;
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xs);
}

.saudi-examples-content {
  max-width: 900px;
  margin: 0 auto;
}

.saudi-examples h2 {
  font-size: 1.7rem;
  margin-bottom: var(--space-sm);
  color: var(--tfm-primary-dark);
}

.saudi-examples p {
  color: var(--tfm-muted);
  margin-bottom: var(--space-md);
}

.saudi-closing {
  margin-top: var(--space-md);
  font-weight: 500;
  color: var(--tfm-muted);
  font-size: 0.98rem;
}

/* Pain bullets on homepage */
.pain-section .pain-conclusion {
  margin-top: var(--space-md);
  text-align: center;
  font-weight: 500;
  color: var(--tfm-muted);
  font-size: 0.98rem;
}

/* Why choose grid */
.why-grid {
  margin-top: var(--space-md);
}

/* -------- 9. Solutions Blocks (solutions.html) -------- */

.solution-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--tfm-border);
  box-shadow: 0 16px 40px var(--tfm-shadow);
}

.solution-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-sm);
}

.solution-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tfm-primary-light);
  font-size: 1.1rem;
}

.solution-desc {
  color: var(--tfm-muted);
  margin-bottom: var(--space-md);
}

.solution-section h3 {
  margin-bottom: var(--space-xs);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--tfm-secondary);
}

/* Ideal For section */
.ideal-for {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--tfm-border);
  color: var(--tfm-muted);
}

.solution-cta {
  margin-top: var(--space-md);
}

/* -------- 10. Pricing Page Base (pricing.html) -------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.pricing-card {
  position: relative;
  padding-top: var(--space-lg);
}

.pricing-card.recommended {
  border-color: var(--tfm-primary);
  box-shadow: 0 20px 55px rgba(74, 61, 154, 0.25);
}

.pricing-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  background: var(--tfm-grad-2);
  color: #fff;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pricing-audience {
  color: var(--tfm-muted);
  font-size: 0.86rem;
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--tfm-primary-dark);
  margin-bottom: var(--space-sm);
}

.pricing-price span {
  font-size: 0.9rem;
  color: var(--tfm-muted);
  font-weight: 500;
}

.pricing-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--tfm-primary-light),
    var(--tfm-border),
    var(--tfm-primary-light)
  );
  margin-bottom: var(--space-sm);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  font-size: 0.95rem;
  padding: 3px 0;
}

/* Add-ons */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.addon-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tfm-secondary);
  margin-bottom: var(--space-xs);
}

/* FAQ */
.faq-section {
  max-width: 800px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-lg);
}

.faq-section h2 {
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.faq-item + .faq-item {
  margin-top: var(--space-sm);
}

/* -------- 11. About / Principles / Audience -------- */

.content-section {
  max-width: 900px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-lg);
}

.content-section h2 {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
  color: var(--tfm-primary-dark);
}

.content-section p {
  margin-bottom: var(--space-xs);
  color: var(--tfm-text);
}

/* Pillars section */
.pillars-section {
  max-width: 1200px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-lg);
}

.pillars-section h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Principles */
.principles-section {
  max-width: 900px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-lg);
}

.principles-section h2 {
  margin-bottom: var(--space-md);
}

.principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.principles-list li p {
  margin: var(--space-xs) 0 0;
}

/* Audience / expectations */
.audience-section,
.expectations-section {
  max-width: 900px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-lg);
}

.expectation-icon {
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

/* -------- 12. Blog List (blog.html base) -------- */

.page-header {
  max-width: 1200px;
  margin: 120px auto 30px;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.page-header .title-wrap h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  color: var(--tfm-primary-dark);
}

.page-header .title-wrap p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tfm-muted);
}

.back-btn {
  font-size: 0.9rem;
  color: var(--tfm-secondary);
  font-weight: 500;
}

.back-btn:hover {
  text-decoration: underline;
}

.page-header .logo-wrap {
  gap: 6px;
}

.page-header .logo-wrap img {
  height: 34px;
}

.page-header .logo-text {
  font-size: 0.95rem;
}

/* Blog grid */
.post-grid {
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.post-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.post-date {
  font-size: 0.82rem;
  color: var(--tfm-muted);
  margin-bottom: 8px;
}

.post-excerpt {
  font-size: 0.92rem;
  color: var(--tfm-text);
  margin-bottom: 10px;
}

.read-more {
  font-size: 0.88rem;
  color: var(--tfm-secondary);
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* -------- 13. Forms Base (contact page uses this + its own file) -------- */

form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tfm-text);
  display: block;
  margin-bottom: 4px;
}

form input,
form textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--tfm-border);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--tfm-primary);
  box-shadow: 0 0 0 3px rgba(74, 61, 154, 0.12);
}

/* -------- 14. Footer -------- */

/* ============================= */
/* GLOBAL CTA SECTION */
/* ============================= */

.cta-section {
  background: linear-gradient(135deg, var(--tfm-primary), var(--tfm-secondary));
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  max-width: 1200px;
  margin: 160px auto;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 70%
  );
  top: -120px;
  right: -120px;
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.btn-white {
  color: var(--tfm-primary);
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: 0.3s ease;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.btn-white {
  background: #fff;
  color: var(--tfm-primary-dark);
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.btn-white:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ============================= */
/* GLOBAL FOOTER */
/* ============================= */

footer {
  background: var(--tfm-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 20px 0;
  margin-top: 120px;
}

.footer-inner {
  /*max-width: 1400px;*/
  margin: 0 auto;
  display: grid;
  /*grid-template-columns: 2fr 1fr 1fr;*/
  gap: 48px;
  margin-bottom: 32px;
  max-width: 1100px;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
}

.footer-brand .footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 360px;
}

.footer-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.footer-section a {
  color: #cbd5e1;
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.footer-section p {
  font-size: 14px;
  margin-top: 1px;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

/* -------- 15. Responsive Tweaks -------- */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  .hero {
    padding: var(--space-lg) var(--space-md);
    margin-top: 64px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .section,
  .content-section,
  .pillars-section,
  .principles-section,
  .audience-section,
  .expectations-section {
    padding: 0 var(--space-md);
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 8px 16px;
  }

  .logo-wrap img {
    height: 34px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .nav {
    row-gap: 4px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .post-grid {
    padding: 0 var(--space-md);
  }
}

/* ============================= */
/* HOW IT WORKS – Step Cards */
/* ============================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.step-card {
  background: #fff;
  border: 1px solid var(--tfm-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: 0 16px 40px var(--tfm-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

.step-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: linear-gradient(135deg, #4a3d9a 0%, #108cce 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.step-card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--tfm-text);
}

.step-card p {
  font-size: 1.05rem;
  color: var(--tfm-muted);
  margin: 0;
}

/* ======================== */
/* Blog Post Card Styling   */
/* ======================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.post-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--tfm-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.15);
}

.post-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--tfm-primary-dark);
  font-size: 1.4rem;
  font-weight: 800;
}

.post-card p {
  color: var(--tfm-muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.post-card a {
  color: var(--tfm-secondary);
  font-weight: 600;
  text-decoration: none;
}

.post-card a:hover {
  text-decoration: underline;
}

/* adding tweaks for the image on hero page */
.hero-visual {
  flex: 0 0 420px;
  max-width: 460px;
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 260px;

  display: block;
  border-radius: 12px;

  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 20%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 1) 75%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 20%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 1) 75%
  );

  opacity: 0.85;
}
