/*
 * blog.css — CyoGate Blog Stylesheet
 * Place at: /public_html/blog/blog.css
 *
 * Nav strategy: style.css makes .navigation position:fixed.
 * We keep that intact (same as online_payments.html) and
 * push body content down with padding-top: 74px.
 *
 * Brand palette (from style.css):
 *   #9edb00  lime-green  — CTAs, badges, active borders
 *   #81b000  olive-green — hover states
 *   #3ab590  teal-green  — body text links
 *   #e2f2b9  pale tint   — callouts, hover backgrounds
 *   #c8e080  border tint — card/tag borders
 *   #00060c  near-black  — hero, footer backgrounds
 */

/* ══════════════════════════════════════════
   BODY & NAV — keep nav fixed, offset body
   ══════════════════════════════════════════ */
.blog-page {
  padding-top: 74px !important;
}

/* Nav stays fixed (style.css handles that).
   We only ensure it stays dark on blog pages
   and that the .scrolled JS class doesn't
   turn it white. */
.blog-page .navigation,
.blog-page .navigation.scrolled {
  background: #00060c !important;
  box-shadow: 0 1px 0 rgba(158, 219, 0, 0.2) !important;
}
.blog-page .navigation .nav-link,
.blog-page .navigation.scrolled .nav-link {
  color: #ccc !important;
  font-size: 15px !important;
}
.blog-page .navigation .nav-link:hover,
.blog-page .navigation.scrolled .nav-link:hover {
  color: #9edb00 !important;
}
.blog-page .navigation .nav-link.active,
.blog-page .navigation.scrolled .nav-link.active {
  color: #9edb00 !important;
}
/* Keep Merchant Login button styled correctly */
.blog-page .navigation .btn-login,
.blog-page .navigation.scrolled .btn-login {
  background: #9edb00 !important;
  color: #00060c !important;
  border-radius: 4px !important;
}
.blog-page .navigation .btn-login:hover,
.blog-page .navigation.scrolled .btn-login:hover {
  background: #81b000 !important;
  color: #fff !important;
}

/* ══════════════════════════════════════════
   HERO BANNER
   ══════════════════════════════════════════ */
.blog-hero {
  background: #00060c;
  border-bottom: 3px solid #9edb00;
  padding: 2.5rem 0 2rem;
}
.blog-breadcrumb {
  font-size: 12px;
  color: #5a7a58;
  margin-bottom: 8px;
}
.blog-breadcrumb a {
  color: #5a7a58;
  text-decoration: none;
}
.blog-breadcrumb a:hover { color: #9edb00; }
.blog-breadcrumb span { color: #3a5038; margin: 0 4px; }
.blog-hero h1 {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 6px !important;
  line-height: 1.25 !important;
}
.blog-hero-sub {
  font-size: 14px;
  color: #8aaa86;
  margin: 0;
}

/* ══════════════════════════════════════════
   PAGE BODY
   ══════════════════════════════════════════ */
.blog-page-wrap {
  padding: 2.25rem 0 1rem;
  background: #f7f8fa;
}

/* Two-column: main (left) + sidebar (right) */
.blog-layout {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: flex-start;
}
.blog-main {
  flex: 1;
  min-width: 0;
  order: 1;
}
.blog-sidebar {
  width: 240px;
  flex-shrink: 0;
  order: 2;
}

/* ══════════════════════════════════════════
   SECTION LABELS
   ══════════════════════════════════════════ */
.section-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  color: #00060c !important;
  border-bottom: 2px solid #9edb00 !important;
  padding-bottom: 6px !important;
  margin-bottom: 1.1rem !important;
}

/* ══════════════════════════════════════════
   FEATURED POST
   ══════════════════════════════════════════ */
.featured-post {
  display: flex;
  border: 1px solid #d4e8c2;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #fff;
  transition: border-color 0.15s;
}
.featured-post:hover { border-color: #9edb00; }
.featured-thumb {
  width: 240px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #00060c 0%, #0d2a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.featured-icon-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(158,219,0,0.12);
  border: 2px solid rgba(158,219,0,0.45);
  display: flex; align-items: center; justify-content: center;
}
.featured-body {
  padding: 1.4rem 1.6rem;
  display: flex; flex-direction: column; justify-content: center;
}
.featured-body h2 {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #00060c !important;
  line-height: 1.35 !important;
  margin: 8px 0 10px !important;
}
.featured-body h2 a { color: inherit; text-decoration: none; }
.featured-body h2 a:hover { color: #81b000; }
.featured-body > p { font-size: 14px; color: #555; line-height: 1.65; margin-bottom: 14px; }

/* ══════════════════════════════════════════
   POST META (shared)
   ══════════════════════════════════════════ */
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; margin-bottom: 4px;
}
.post-cat {
  background: #9edb00; color: #00060c;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  padding: 2px 9px; border-radius: 10px;
}
.post-date, .post-read, .post-author { font-size: 11px; color: #888; }

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn-read {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: #00060c; background: #9edb00;
  padding: 7px 18px; border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-read:hover { background: #81b000; color: #fff; }

/* ══════════════════════════════════════════
   POST GRID
   ══════════════════════════════════════════ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 2rem;
}
.post-card {
  border: 1px solid #d4e8c2; border-radius: 6px;
  overflow: hidden; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  border-color: #9edb00;
  box-shadow: 0 2px 12px rgba(158,219,0,0.15);
}
.card-thumb {
  height: 90px; display: flex;
  align-items: center; justify-content: center;
}
.card-thumb.g1 { background: linear-gradient(135deg, #00060c, #162e08); }
.card-thumb.g2 { background: linear-gradient(135deg, #0c2208, #2a5a0a); }
.card-thumb.g3 { background: linear-gradient(135deg, #162e08, #3a6b0a); }
.card-body { padding: 12px 14px 14px; }
.card-cat {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.7px;
  color: #81b000; margin-bottom: 5px;
}
.card-body h3 {
  font-size: 13px !important; font-weight: 700 !important;
  color: #00060c !important; line-height: 1.4 !important; margin-bottom: 6px !important;
}
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: #81b000; }
.card-body > p { font-size: 12px; color: #666; line-height: 1.55; margin-bottom: 10px; }
.card-foot {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 11px; color: #999;
}
.card-foot a { color: #3ab590; text-decoration: none; font-weight: 600; font-size: 11px; }
.card-foot a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   POST LIST
   ══════════════════════════════════════════ */
.post-list {
  display: flex; flex-direction: column;
  gap: 12px; margin-bottom: 2rem;
}
.post-list-item {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid #d4e8c2; border-radius: 6px;
  padding: 13px 16px; background: #fff;
  transition: border-color 0.12s, background 0.12s;
}
.post-list-item:hover { border-color: #9edb00; background: #fbfef5; }
.list-num {
  font-size: 22px; font-weight: 700;
  color: #d4e8c2; line-height: 1;
  min-width: 28px; text-align: right;
  flex-shrink: 0; padding-top: 2px;
}
.list-body h3 {
  font-size: 14px !important; font-weight: 700 !important;
  color: #00060c !important; margin-bottom: 4px !important; line-height: 1.4 !important;
}
.list-body h3 a { color: inherit; text-decoration: none; }
.list-body h3 a:hover { color: #81b000; }
.list-body > p { font-size: 12px; color: #666; line-height: 1.55; }
.list-meta { font-size: 11px; color: #999; margin-top: 5px; }

/* ══════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════ */
.blog-pagination {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 2rem;
}
.page-btn {
  font-size: 13px; padding: 6px 13px;
  border: 1px solid #d4e8c2; border-radius: 4px;
  color: #00060c; background: #fff; text-decoration: none;
  transition: background 0.12s;
}
.page-btn:hover { background: #e2f2b9; border-color: #9edb00; }
.page-btn.active { background: #9edb00; color: #00060c; border-color: #9edb00; font-weight: 700; }
.page-btn.page-prev, .page-btn.page-next { color: #3ab590; font-weight: 700; }
.page-ellipsis { color: #aaa; font-size: 13px; padding: 0 4px; }

/* ══════════════════════════════════════════
   CTA STRIP
   ══════════════════════════════════════════ */
.cta-strip {
  background: #00060c; border: 1px solid #9edb00;
  border-radius: 6px; padding: 1.4rem 1.75rem;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
  margin-bottom: 1rem;
}
.cta-strip h3 { font-size: 15px !important; font-weight: 700 !important; color: #fff !important; margin-bottom: 4px !important; }
.cta-strip p { font-size: 13px; color: #8aaa86; margin: 0; }
.btn-cta {
  flex-shrink: 0; display: inline-block;
  background: #9edb00; color: #00060c;
  font-size: 13px; font-weight: 700;
  padding: 10px 24px; border-radius: 4px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn-cta:hover { background: #81b000; color: #fff; }

/* ══════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════ */
.sidebar-section { margin-bottom: 1.75rem; }
.sidebar-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: #00060c; border-bottom: 2px solid #9edb00;
  padding-bottom: 5px; margin-bottom: 9px;
}
.sidebar-link {
  display: block; font-size: 13px; color: #444;
  text-decoration: none; padding: 5px 8px;
  border-radius: 4px; line-height: 1.45;
  transition: background 0.12s, color 0.12s;
}
.sidebar-link:hover { background: #e2f2b9; color: #00060c; }
.sidebar-link.active { background: #00060c; color: #9edb00; }
.archive-count { color: #aaa; font-size: 11px; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sidebar-tag {
  display: inline-block; font-size: 11px;
  padding: 3px 9px; border-radius: 12px;
  background: #e2f2b9; color: #4a6200;
  border: 1px solid #c8e080; text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.sidebar-tag:hover { background: #9edb00; color: #00060c; border-color: #9edb00; }
.sidebar-tag.active {
  background: #9edb00;
  color: #9edb00;
  border-color: #9edb00;
}
.sidebar-promo {
  background: #f7fded;
  border: 1px solid #d4e8c2;
  border-radius: 6px; padding: 12px 14px;
}
.sidebar-promo p { font-size: 13px; color: #444; line-height: 1.55; margin: 0; }

/* ══════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════ */
.back-link {
  display: inline-block; font-size: 13px;
  color: #3ab590; text-decoration: none; margin-bottom: 1.25rem;
}
.back-link:hover { text-decoration: underline; }
.article-header {
  border-bottom: 2px solid #9edb00;
  padding-bottom: 1rem; margin-bottom: 1.75rem;
}
.article-header h1 {
  font-size: 26px !important; font-weight: 700 !important;
  color: #00060c !important; line-height: 1.35 !important;
  margin-top: 8px !important; margin-bottom: 0 !important;
}
.article-body { font-size: 15px; color: #333; line-height: 1.8; }
.article-body h2 {
  font-size: 19px !important; font-weight: 700 !important;
  color: #00060c !important; margin: 1.75rem 0 0.75rem !important;
  padding-bottom: 4px; border-bottom: 1px solid #e2f2b9;
}
.article-body p { margin-bottom: 1rem; }
.article-body a { color: #3ab590; }
.article-body a:hover { color: #81b000; }
.article-body strong { color: #00060c; }
.article-list { margin: 0 0 1rem 1.25rem; padding: 0; }
.article-list li { margin-bottom: 6px; font-size: 15px; color: #333; line-height: 1.7; }
.article-callout {
  background: #e2f2b9; border-left: 4px solid #9edb00;
  padding: 13px 18px; border-radius: 0 5px 5px 0;
  margin: 1.5rem 0; font-size: 14px; color: #2a4a00; line-height: 1.65;
}
.article-callout a { color: #3ab590; }
.article-footer {
  border-top: 1px solid #e2f2b9; padding-top: 1.25rem;
  margin-top: 1.75rem; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 1rem;
}
.article-tags {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; font-size: 12px; color: #888;
}
.article-cta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #555; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.blog-footer {
  background: #00060c;
  border-top: 3px solid #9edb00;
  margin-top: 3rem;
}
.blog-footer-inner {
  padding: 2.5rem 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.blog-footer-inner p { font-size: 13px; color: #6b8a68; line-height: 1.65; margin: 0; }
.blog-footer-inner p a { color: #9edb00; text-decoration: none; }
.blog-footer-inner p a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links strong { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #9edb00; margin-bottom: 4px; }
.footer-links a { font-size: 13px; color: #6b8a68; text-decoration: none; transition: color 0.12s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1a2e1a; padding: 1rem 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: #3d5a3a; margin: 0; }
.footer-bottom a { color: #6b8a68; text-decoration: none; }
.footer-bottom a:hover { color: #9edb00; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 992px) {
  .blog-layout { flex-direction: column; }
  .blog-sidebar { width: 100%; order: 2; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-footer-inner { grid-template-columns: 1fr 1fr; }
  .blog-footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .featured-post { flex-direction: column; }
  .featured-thumb { width: 100%; min-height: 120px; }
  .post-grid { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; text-align: center; }
  .article-footer { flex-direction: column; align-items: flex-start; }
  .blog-footer-inner { grid-template-columns: 1fr; }
  .blog-footer-inner > div:first-child { grid-column: auto; }
}
