/* Blackmon Tutoring — Blog page */

.blog-page {
  --navy: #0b1f3f;
  --navy-2: #0d2243;
  --blue: #5babe0;
  --blue-2: #3e8dc4;
  --ink: #222222;
  --muted: #5d7089;
  --muted-2: #54647e;
  --border: #dfe7f0;
  --bg-light: #f4f8fc;
  --bg-input: #fbfcfe;
  --font-heading: var(--font-merriweather), Georgia, serif;
  --font-body: var(--font-inter), Arial, sans-serif;
  color: var(--ink);
  font-family: var(--font-body);
}

.blog-page * {
  box-sizing: border-box;
}

.blog-page .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.blog-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 0.2px solid var(--blue-2);
  background: rgba(62, 141, 196, 0.04);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 20px;
}

.blog-page .eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: currentColor;
  flex-shrink: 0;
}

.blog-page h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.28;
  color: var(--navy);
  letter-spacing: -0.32px;
  margin: 0 0 12px;
}

.blog-page .section-lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 640px;
  margin: 0 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #e8f1f8; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue-2); }

/* ---------- HEADER / HERO ---------- */

.blog-hero {
  background: #fff;
  padding: 32px 0 60px;
}

.blog-hero .breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: var(--navy);
  margin: 0 0 14px;
}

.blog-hero h1 .accent {
  color: var(--blue-2);
}

.blog-hero .hero-copy {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 720px;
  margin: 0 0 36px;
}

.featured-post {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 20px;
}

.featured-post > * {
  min-width: 0;
}

.featured-post .featured-photo {
  position: relative;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
}

.featured-post .featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-post .featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.featured-post .featured-body .post-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-2);
  background: rgba(62, 141, 196, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}

.featured-post h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 12px;
}

.featured-post p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 16px;
}

.post-meta {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.post-meta .author {
  font-weight: 600;
  color: var(--navy);
}

.read-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  display: inline-block;
}

.read-link:hover {
  color: var(--blue-2);
  text-decoration: underline;
}

.post-card .read-link {
  margin-top: 10px;
  font-size: 13.5px;
}

/* ---------- FILTERS + SEARCH ---------- */

.blog-filters {
  background: #fff;
  padding: 0 0 40px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  border-radius: 99px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  cursor: pointer;
}

.filter-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 16px;
  min-width: 220px;
  color: var(--muted);
  font-size: 14px;
}

.search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--navy);
  width: 100%;
  background: transparent;
}

/* ---------- LAYOUT: GRID + SIDEBAR ---------- */

.blog-body {
  background: #fff;
  padding-bottom: 100px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.blog-layout > * {
  min-width: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.post-grid > * {
  min-width: 0;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.post-card .post-photo {
  height: 170px;
}

.post-card .post-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card .post-body {
  padding: 18px 20px 22px;
}

.post-card .post-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.post-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 8px;
}

.post-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 12px;
}

.post-card .post-meta {
  margin-bottom: 0;
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination button,
.pagination .page-num {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.pagination .page-num.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.pagination button.is-disabled,
.pagination .page-num.is-disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: var(--bg-light);
  border-color: var(--border);
}

.pagination-note {
  width: 100%;
  text-align: center;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.post-grid-empty {
  display: none;
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
  font-size: 15px;
}

.post-grid-empty.is-visible {
  display: block;
}

.post-grid-empty button {
  margin-top: 14px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
}

/* Sidebar */

.blog-sidebar > div {
  margin-bottom: 32px;
}

.sidebar-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 16px;
}

.recent-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-posts li {
  display: flex;
  gap: 12px;
}

.recent-posts .rp-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--border);
  flex-shrink: 0;
}

.recent-posts .rp-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
}

.recent-posts .rp-date {
  font-size: 12.5px;
  color: var(--muted);
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--navy);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list .cat-count {
  color: var(--muted);
  font-size: 13px;
}

.category-list li.is-active {
  color: var(--blue-2);
  font-weight: 600;
}

.sidebar-cta {
  background: var(--navy);
  border-radius: 18px;
  padding: 28px 24px;
  color: #fff;
}

.sidebar-cta h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 10px;
}

.sidebar-cta p {
  font-size: 14.5px;
  line-height: 1.5;
  color: #cbddf0;
  margin: 0 0 20px;
}

.sidebar-cta .btn {
  width: 100%;
}

/* ---------- NEWSLETTER ---------- */

.blog-newsletter {
  background: var(--bg-light);
  padding: 80px 0;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 60px;
  align-items: center;
}

.newsletter-grid > * {
  min-width: 0;
}

.blog-newsletter .eyebrow {
  margin-bottom: 20px;
}

.blog-newsletter .section-lede {
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.newsletter-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 13px 20px;
  font-size: 14.5px;
  background: #fff;
}

.newsletter-form input {
  min-width: 0;
}

.newsletter-form button {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
  background: var(--blue-2);
}

.newsletter-fine-print {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.newsletter-fine-print span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.newsletter-fine-print span::before {
  content: "✓";
  color: #2e9e6b;
  font-weight: 700;
}

.newsletter-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px -20px rgba(11, 31, 63, 0.2);
  overflow: hidden;
}

.newsletter-preview .np-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.newsletter-preview .np-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletter-preview .np-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.newsletter-preview .np-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  display: block;
}

.newsletter-preview .np-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.newsletter-preview .np-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-2);
  background: rgba(62, 141, 196, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
}

.newsletter-preview .np-body {
  padding: 20px 22px;
}

.newsletter-preview .np-body-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 14px;
}

.newsletter-preview .np-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.newsletter-preview .np-row:first-of-type {
  border-top: none;
}

.newsletter-preview .np-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--blue-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.newsletter-preview .np-row-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy);
  display: block;
}

.newsletter-preview .np-row-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.newsletter-preview .np-footer {
  border-top: 1px solid var(--border);
  padding: 14px 22px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---------- FAQ + CONTACT (shared pattern) ---------- */

.blog-faq {
  background: linear-gradient(90deg, rgba(232, 241, 248, 0.45), rgba(232, 241, 248, 0.45)), #fff;
  padding: 100px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}

.faq-grid > * {
  min-width: 0;
}

.faq-grid h2,
.faq-grid .section-lede {
  text-align: left;
}

.faq-list {
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}

.faq-item .faq-question img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-item .faq-answer {
  font-size: 16px;
  line-height: 1.4;
  color: #222;
  margin-top: 12px;
  max-width: 90%;
}

.faq-item:not(.is-open) .faq-answer {
  display: none;
}

.faq-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 50px -24px rgba(20, 40, 80, 0.25);
  padding: 40px;
}

.faq-card .eyebrow-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--blue-2);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.faq-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
  letter-spacing: -0.26px;
  margin: 0 0 8px;
}

.faq-card .form-sub {
  font-size: 16px;
  color: #222;
  margin: 0 0 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row > * {
  min-width: 0;
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14.5px;
  color: var(--navy);
  font-family: var(--font-body);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.faq-card .btn-submit {
  width: 100%;
  margin: 24px 0 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px -8px rgba(91, 171, 224, 0.7);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-card .btn-submit:hover {
  background: var(--blue-2);
}

.faq-card .form-note {
  font-size: 13px;
  color: #5b6472;
  text-align: center;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .featured-post,
  .blog-layout,
  .post-grid,
  .newsletter-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .blog-page .inner {
    padding: 0 24px;
  }
}
