/* ============================================================
   Cashz Blog Stylesheet
   Brand: Cashz | Font: Work Sans | Built 2026-03
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  color: #343a40;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}


/* ── Header ───────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #470460;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

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

.header-logo {
  height: 52px;
  width: auto;
  display: block;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50px;
  color: #ffffff;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.header-btn--primary {
  background-color: #fea407;
  border-color: #fea407;
  color: #470460;
}

.header-btn--primary:hover {
  background-color: #ffce21;
  border-color: #ffce21;
  color: #470460;
}


/* ── Blog Hero ────────────────────────────────────────────── */

.blog-hero {
  background: linear-gradient(135deg, #470460 0%, #5a1078 60%, #3a0350 100%);
  text-align: center;
  padding: 120px 24px 72px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(254, 164, 7, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(255, 206, 33, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero__inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.blog-hero h1 {
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.blog-hero h1 span {
  color: #fea407;
}

.blog-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}


/* ── Blog Index Layout ────────────────────────────────────── */

.blog-section {
  padding: 64px 24px 96px;
  background-color: #f8f9fa;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}


/* ── Blog Card ────────────────────────────────────────────── */

.blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(71, 4, 96, 0.14);
}

.blog-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-card__img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #5a1078, #470460);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 48px;
}

.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fea407;
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #470460;
  line-height: 1.35;
  margin-bottom: 0;
  transition: color 0.18s ease;
}

.blog-card:hover .blog-card__title {
  color: #5a1078;
}

.blog-card__excerpt {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.65;
  margin-top: 8px;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #6c757d;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f3f5;
}

.blog-card__date {
  font-weight: 400;
}

.blog-card__read {
  font-weight: 600;
  color: #fea407;
  transition: color 0.18s ease;
}

.blog-card:hover .blog-card__read {
  color: #efbc1d;
}


/* ── Article Page ─────────────────────────────────────────── */

.article-wrapper {
  background-color: #ffffff;
  min-height: 100vh;
}

.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 48px 80px;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #470460;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color 0.18s ease;
}

.article__back::before {
  content: '←';
  font-size: 16px;
}

.article__back:hover {
  color: #fea407;
}

.article__category {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fea407;
  margin-bottom: 12px;
}

.article__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #470460;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.article__meta {
  color: #6c757d;
  font-size: 14px;
  font-weight: 400;
  margin: 12px 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article__meta-sep {
  color: #e9ecef;
}

.article__cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 40px;
  max-height: 420px;
  object-fit: cover;
}


/* ── Article Content (rich text) ──────────────────────────── */

.article__content {
  color: #495057;
}

.article__content p {
  font-size: 17px;
  color: #495057;
  line-height: 1.8;
  margin-bottom: 18px;
}

.article__content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #470460;
  line-height: 1.3;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f3f5;
}

.article__content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #470460;
  line-height: 1.35;
  margin: 28px 0 12px;
}

.article__content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #343a40;
  margin: 20px 0 10px;
}

.article__content ul,
.article__content ol {
  margin-left: 24px;
  margin-bottom: 18px;
  list-style: revert;
}

.article__content ul {
  list-style-type: disc;
}

.article__content ol {
  list-style-type: decimal;
}

.article__content li {
  font-size: 17px;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 8px;
}

.article__content strong,
.article__content b {
  font-weight: 700;
  color: #343a40;
}

.article__content em,
.article__content i {
  font-style: italic;
}

.article__content blockquote {
  border-left: 4px solid #fea407;
  padding: 16px 20px;
  margin: 24px 0;
  background-color: #fdf6e8;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #495057;
}

.article__content blockquote p {
  margin-bottom: 0;
  font-size: 16px;
}

.article__content img {
  width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  object-fit: cover;
}

.article__content a {
  color: #fea407;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.article__content a:hover {
  color: #efbc1d;
  border-bottom-color: #efbc1d;
  text-decoration: underline;
}

.article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.article__content table th {
  background-color: #470460;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.article__content table td {
  padding: 11px 16px;
  color: #495057;
  border-bottom: 1px solid #f1f3f5;
}

.article__content table tr:nth-child(even) td {
  background-color: #f8f9fa;
}

.article__content table tr:last-child td {
  border-bottom: none;
}

.article__content table tr:hover td {
  background-color: #fdf6e8;
}

.article__content code {
  background-color: #f1f3f5;
  color: #470460;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
}

.article__content pre {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.article__content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.article__content hr {
  border: none;
  border-top: 2px solid #f1f3f5;
  margin: 40px 0;
}


/* ── CTA Box ──────────────────────────────────────────────── */

.cta-box {
  background: linear-gradient(135deg, #470460 0%, #5a1078 100%);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% 50%, rgba(254, 164, 7, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 206, 33, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box__inner {
  position: relative;
}

.cta-box h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #f0a050;
  color: #ffffff;
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.cta-box .btn:hover {
  background-color: #fea407;
  box-shadow: 0 8px 24px rgba(254, 164, 7, 0.45);
  transform: translateY(-2px);
}

.cta-box .btn:active {
  transform: translateY(0);
}


/* ── Related Articles ─────────────────────────────────────── */

.related-articles {
  border-top: 2px solid #f1f3f5;
  padding-top: 40px;
  margin-top: 56px;
}

.related-articles h3 {
  font-size: 20px;
  font-weight: 700;
  color: #470460;
  margin-bottom: 20px;
}

.related-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-articles li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-articles li::before {
  content: '→';
  color: #fea407;
  font-weight: 700;
  flex-shrink: 0;
}

.related-articles a {
  color: #fea407;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.related-articles a:hover {
  color: #efbc1d;
  border-bottom-color: #efbc1d;
  text-decoration: underline;
}


/* ── Footer ───────────────────────────────────────────────── */

.footer {
  background-color: #470460;
  border-top: 3px solid #ffce21;
  padding: 48px 24px 32px;
  text-align: center;
}

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  margin: 0 auto 28px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 28px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #ffce21;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.30);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}


/* ── Pagination ───────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background-color: #ffffff;
  color: #495057;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pagination__btn:hover,
.pagination__btn--active {
  background-color: #470460;
  color: #ffffff;
  border-color: #470460;
}


/* ── Category Filter (optional) ───────────────────────────── */

.blog-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto 36px;
}

.blog-filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid #e9ecef;
  background-color: #ffffff;
  color: #6c757d;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.blog-filter:hover,
.blog-filter--active {
  background-color: #470460;
  color: #ffffff;
  border-color: #470460;
}


/* ── Search Bar (optional) ────────────────────────────────── */

.blog-search {
  max-width: 480px;
  margin: 0 auto 40px;
  position: relative;
}

.blog-search__input {
  width: 100%;
  padding: 14px 52px 14px 20px;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  color: #343a40;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.blog-search__input:focus {
  border-color: #470460;
  box-shadow: 0 0 0 3px rgba(71, 4, 96, 0.1);
}

.blog-search__input::placeholder {
  color: #adb5bd;
}

.blog-search__icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
  font-size: 16px;
}


/* ── Tag Badges (optional) ────────────────────────────────── */

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background-color: #fdf6e8;
  color: #fea407;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ── Utility Classes ──────────────────────────────────────── */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {

  /* Header */
  .header-inner {
    padding: 0 16px;
    height: 60px;
  }

  .header-logo {
    height: 40px;
  }

  .header-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  /* Blog Hero */
  .blog-hero {
    padding: 100px 20px 56px;
  }

  .blog-hero h1 {
    font-size: 28px;
  }

  .blog-hero p {
    font-size: 16px;
  }

  /* Blog Grid */
  .blog-section {
    padding: 48px 16px 72px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Article */
  .article {
    padding: 100px 20px 56px;
  }

  .article__title {
    font-size: 1.6rem;
  }

  .article__content p,
  .article__content li {
    font-size: 16px;
  }

  .article__content h2 {
    font-size: 1.3rem;
  }

  .article__content h3 {
    font-size: 1.1rem;
  }

  .article__content table {
    font-size: 13px;
  }

  .article__content table th,
  .article__content table td {
    padding: 9px 12px;
  }

  /* CTA Box */
  .cta-box {
    padding: 36px 24px;
  }

  .cta-box h3 {
    font-size: 20px;
  }

  .cta-box p {
    font-size: 15px;
  }

  .cta-box .btn {
    padding: 12px 28px;
    font-size: 15px;
  }

  /* Footer */
  .footer {
    padding: 40px 20px 28px;
  }

  .footer-logo {
    height: 48px;
    margin-bottom: 20px;
  }

  .footer-links {
    gap: 8px 16px;
  }

  /* Blog Filters */
  .blog-filters {
    gap: 8px;
  }

  .blog-filter {
    padding: 7px 16px;
    font-size: 12px;
  }

}

@media (max-width: 480px) {

  .blog-hero h1 {
    font-size: 24px;
  }

  .article__title {
    font-size: 1.4rem;
  }

  .header-buttons {
    gap: 8px;
  }

  .header-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .cta-box {
    padding: 28px 20px;
  }

}
