/* ==========================================================
   SECTION LANDING PAGES — Shared card-based layout
   Used by: Data Science, SQL, Playbooks, Statistics, Reference Library
   ========================================================== */

/* ---- Hero Banner ---- */
.section-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.section-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 0.3px;
}

.section-hero .section-subtitle {
  font-size: 1.1rem;
  color: #b0c4de;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-hero .section-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #8899bb;
}

/* ---- Group Headers ---- */
.card-group-header {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 2rem 2rem 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #0f3460;
  display: inline-block;
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  padding: 0 2rem 1.5rem;
}

.card-grid .post-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1rem;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.card-grid .post-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.post-card .card-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 0.3rem;
}

.post-card .card-date {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.4rem;
}

.post-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.post-card h3 a {
  color: #1a1a2e;
  text-decoration: none;
}

.post-card h3 a:hover {
  color: #0f3460;
  text-decoration: underline;
}

.post-card .card-tools {
  font-size: 0.82rem;
  color: #666;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---- Tag Colors ---- */
.tag-playbooks  { color: #0f3460; }
.tag-sql        { color: #b33000; }
.tag-ds         { color: #2e7d32; }
.tag-stats      { color: #6a1b9a; }
.tag-python     { color: #306998; }
.tag-js         { color: #f0a500; }
.tag-web        { color: #e44d26; }
.tag-jupyter    { color: #e46e2e; }
.tag-database   { color: #555; }
.tag-msoffice   { color: #d83b01; }
.tag-r          { color: #276dc2; }
.tag-foundations { color: #6a1b9a; }
.tag-inference  { color: #4a148c; }

/* ---- Flexbox sticky footer override (same as landing.css) ---- */
#page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content-wrap {
  flex: 1 0 auto;
  padding-bottom: 0;
}

#footer {
  position: static;
  flex-shrink: 0;
}

/* ---- Section Disclaimer ---- */
.section-disclaimer {
  margin: 0 2rem 1rem;
  font-size: 0.82rem;
  color: #999;
  line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .section-hero { padding: 1.5rem 1.25rem; }
  .section-hero h1 { font-size: 1.6rem; }
  .section-hero .section-subtitle { font-size: 1rem; }
  .card-grid { grid-template-columns: 1fr; padding: 0 1rem 1rem; }
  .card-group-header { margin-left: 1rem; margin-right: 1rem; font-size: 1.15rem; }
}
