/* Blog CSS — matches credite.cc style */
:root {
  --pink: #f51f8a;
  --blue: #15549a;
  --dark: #3c4d6b;
  --text: #778191;
  --bg: #f4f6f8;
  --white: #fff;
  --border: #e8ecf1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pink); text-decoration: none; transition: .3s; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 { color: var(--dark); font-weight: 600; }

img { max-width: 100%; height: auto; }

/* ── Top Bar ── */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.top-bar span { display: inline-block; }
.top-bar a { color: rgba(255,255,255,.9); }

/* ── Header ── */
.site-header {
  background: var(--white);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo img { height: 42px; }
.header-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-calc, .btn-apply {
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-calc { background: var(--pink); color: #fff; }
.btn-calc:hover { background: #d91a78; color: #fff; }
.btn-apply { background: var(--blue); color: #fff; }
.btn-apply:hover { background: #0e3f78; color: #fff; }

/* ── Navigation ── */
.main-nav {
  background: var(--white);
  border-bottom: 2px solid var(--pink);
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0;
}
.main-nav li a {
  display: block;
  padding: 14px 20px;
  color: var(--dark);
  font-weight: 500;
  font-size: 14px;
  transition: .2s;
}
.main-nav li a:hover,
.main-nav li a.active {
  color: var(--pink);
  background: rgba(245, 31, 138, .05);
}

/* ── Page Banner ── */
.page-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #1a3a6c 100%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-banner h1 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 10px;
}
.page-banner p {
  opacity: .85;
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Container ── */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ── Blog Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  padding: 40px 0 60px;
}

.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: .3s;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 24px;
}
.blog-card-category {
  display: inline-block;
  background: rgba(245, 31, 138, .1);
  color: var(--pink);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.blog-card-title {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card-title a { color: var(--dark); }
.blog-card-title a:hover { color: var(--pink); }
.blog-card-desc {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.6;
}
.blog-card-meta {
  font-size: 13px;
  color: #a0a8b4;
}

/* ── Article Page ── */
.article-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 15px 60px;
}
.article-header {
  margin-bottom: 30px;
}
.article-header h1 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.article-meta {
  font-size: 14px;
  color: #a0a8b4;
  margin-bottom: 20px;
}
.article-meta span { margin-right: 16px; }
.article-hero {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 30px;
}

/* Article Content */
.article-content {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  line-height: 1.9;
  color: #4a5568;
}
.article-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.article-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  margin: 28px 0 12px;
}
.article-content p {
  margin-bottom: 22px;
}
.article-content ul, .article-content ol {
  margin: 16px 0 22px 24px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content strong {
  color: var(--dark);
  font-weight: 700;
}
.article-content a {
  color: var(--pink);
  text-decoration: underline;
}
.article-content blockquote {
  border-left: 4px solid var(--pink);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(245, 31, 138, .04);
  font-style: italic;
  color: var(--dark);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}
.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article-content th {
  background: var(--bg);
  color: var(--dark);
  font-weight: 600;
}

/* ── CTA Box ── */
.cta-box {
  background: linear-gradient(135deg, var(--blue) 0%, #1a3a6c 100%);
  color: #fff;
  border-radius: 10px;
  padding: 36px;
  text-align: center;
  margin: 40px 0;
}
.cta-box h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}
.cta-box p {
  opacity: .85;
  margin-bottom: 20px;
}
.cta-box .btn-cta {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: .3s;
}
.cta-box .btn-cta:hover {
  background: #d91a78;
  transform: scale(1.03);
  color: #fff;
}

/* ── Tags ── */
.article-tags {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-tags a {
  display: inline-block;
  background: var(--bg);
  color: var(--dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.article-tags a:hover {
  background: var(--pink);
  color: #fff;
}

/* ── Related Posts ── */
.related-posts {
  margin: 40px 0;
}
.related-posts h3 {
  margin-bottom: 20px;
  font-size: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.related-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.related-card-body {
  padding: 14px;
}
.related-card-body h4 {
  font-size: 14px;
  line-height: 1.4;
}
.related-card-body h4 a { color: var(--dark); }
.related-card-body h4 a:hover { color: var(--pink); }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 50px 0 20px;
}
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: rgba(255,255,255,.7); font-size: 14px; }
.site-footer a:hover { color: var(--pink); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-bottom {
  background: #2a3a55;
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding: 14px 0;
  font-size: 13px;
  color: #a0a8b4;
}
.breadcrumbs a { color: var(--pink); }
.breadcrumbs span { margin: 0 6px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 24px; }
  .article-header h1 { font-size: 24px; }
  .article-content { font-size: 16px; }
  .main-nav ul { flex-direction: column; }
  .top-bar .container { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-btns { width: 100%; }
  .btn-calc, .btn-apply { width: 100%; text-align: center; }
}
