/*
Theme Name: Checkgo
Theme URI: https://checkgo.com
Author: Pushnami
Description: Minimal hand-coded theme for Checkgo. Blog-serving home page with brand header and footer.
Version: 1.2.2
License: Proprietary
Text Domain: checkgo
*/

:root {
  --cg-blue: #1567ff;
  --cg-blue-dark: #0e4fd1;
  --cg-navy: #141b33;
  --cg-muted: #5c6577;
  --cg-bg: #f4f7ff;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--cg-navy);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

img { max-width: 100%; height: auto; }

a { color: var(--cg-blue); }

.cg-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.cg-header { padding: 16px 0; border-bottom: 1px solid #e7edfb; background: #fff; }

/* ---------- Breadcrumb (above the page title) ---------- */
.cg-breadcrumb { font-size: 13px; color: var(--cg-muted); margin-bottom: 14px; }
.cg-breadcrumb a { color: var(--cg-muted); text-decoration: none; }
.cg-breadcrumb a:hover { color: var(--cg-blue); text-decoration: underline; }
.cg-breadcrumb .sep { margin: 0 7px; opacity: 0.6; }
.cg-breadcrumb .current { color: var(--cg-navy); font-weight: 600; }
.cg-header .cg-wrap { display: flex; align-items: center; }
.cg-logo { display: inline-flex; align-items: center; text-decoration: none; }
.cg-logo img { height: 34px; width: auto; display: block; }
.cg-logo-fallback { display: none; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; color: var(--cg-navy); }
.cg-logo-fallback span { color: var(--cg-blue); }
.cg-logo.is-fallback img { display: none; }
.cg-logo.is-fallback .cg-logo-fallback { display: inline; }

/* ---------- Home hero band ---------- */
.cg-hero {
  background: var(--cg-navy);
  color: #fff;
  padding: 90px 0 100px;
}
.cg-hero h1 { font-size: 42px; line-height: 1.05; font-weight: 800; letter-spacing: -1px; }
.cg-hero h1 span { color: var(--cg-blue); }

/* ---------- Blog list ---------- */
.cg-main { padding: 40px 0 56px; }
.cg-post {
  background: var(--cg-bg);
  border-radius: 14px;
  padding: 26px 24px;
  margin-bottom: 20px;
  box-shadow:
    0px 0px 0px 1px rgba(20, 27, 51, 0.06),
    0px 1px 2px -1px rgba(20, 27, 51, 0.06),
    0px 2px 4px 0px rgba(20, 27, 51, 0.04);
}
.cg-post h2 { font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.cg-post h2 a { color: var(--cg-navy); text-decoration: none; }
.cg-post h2 a:hover { color: var(--cg-blue); }
.cg-post-date { font-size: 13px; color: var(--cg-muted); margin-bottom: 12px; }
.cg-post-excerpt { font-size: 16px; color: var(--cg-muted); }
.cg-post-thumb { border-radius: 10px; margin-bottom: 16px; display: block; }
.cg-readmore {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--cg-blue);
  text-decoration: none;
}
.cg-readmore:hover { color: var(--cg-blue-dark); text-decoration: underline; }

/* ---------- Single post / page ---------- */
.cg-single h1 { font-size: 32px; line-height: 1.2; margin-bottom: 8px; }
.cg-single .cg-post-date { margin-bottom: 24px; }
.cg-content p, .cg-content ul, .cg-content ol { margin-bottom: 18px; }
.cg-content h2 { font-size: 24px; margin: 30px 0 12px; }
.cg-content h3 { font-size: 19px; margin: 24px 0 10px; }
.cg-content img { border-radius: 10px; }

/* ---------- Pagination ---------- */
.cg-pagination { display: flex; gap: 14px; justify-content: center; margin-top: 32px; font-weight: 700; }
.cg-pagination a { text-decoration: none; }

/* ---------- Footer ---------- */
.cg-footer { background: var(--cg-navy); color: rgba(255, 255, 255, 0.75); padding: 34px 0 26px; text-align: center; margin-top: 40px; }
.cg-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin-bottom: 20px; }
.cg-footer-links a { color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600; text-decoration: none; }
.cg-footer-links a:hover { color: #fff; text-decoration: underline; }
.cg-footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

@media (min-width: 768px) {
  .cg-logo img { height: 40px; }
  .cg-hero { padding: 110px 0 120px; }
  .cg-hero h1 { font-size: 68px; }
  .cg-main { padding: 56px 0 72px; }
  .cg-single h1 { font-size: 38px; }
}
