/* Drive Easy blog: index cards, post layout, call box. Loaded from blog/header.php and the home page. */
:root {
  --de-ink: #112e3b;
  --de-text: #33454e;
  --de-muted: #5d6f78;
  --de-green: #8aa53c;
  --de-green-deep: #5f7a1f;
  --de-green-soft: #eef3e2;
  --de-line: #e3e9ec;
  --de-bg: #f5f7f3;
  --de-wa: #128c7e;
}

/* ---------- Cards (blog index, home page, Keep Reading) ---------- */
.de-card img, .de-post-figure img { max-width: 100%; }
.de-post-wrap, .de-post-body { min-width: 0; }
.de-card-col { margin-bottom: 30px; display: flex; }
.de-card {
  display: flex; flex-direction: column; width: 100%; min-width: 0;
  background: #fff; border: 1px solid var(--de-line); border-radius: 12px; overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.de-card:hover { box-shadow: 0 12px 32px rgba(17, 46, 59, .12); transform: translateY(-2px); }
.de-card-img { display: block; aspect-ratio: 16 / 9; background: var(--de-green-soft); overflow: hidden; }
.de-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.de-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.de-card-meta { margin: 0 0 10px; font-size: 13px; color: var(--de-muted); line-height: 1.4; }
.de-card-cat {
  display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 20px;
  background: var(--de-green-soft); color: var(--de-green-deep); font-weight: 700; font-size: 12px;
}
.de-card-title { margin: 0 0 10px; font-size: 19px; line-height: 1.35; font-weight: 700; }
.de-card-title a { color: var(--de-ink); }
.de-card-title a:hover { color: var(--de-green-deep); text-decoration: none; }
.de-card-excerpt { margin: 0 0 16px; color: var(--de-text); font-size: 15px; line-height: 1.6; }
.de-card-more { margin-top: auto; font-weight: 700; color: var(--de-green-deep); font-size: 15px; }
.de-card-more::after { content: " \2192"; }
.de-card-more:hover { color: var(--de-ink); text-decoration: none; }

/* ---------- Blog index ---------- */
.de-blog-index { padding: 60px 0 40px; background: var(--de-bg); }
.de-blog-intro { max-width: 720px; margin: 0 0 36px; color: var(--de-text); font-size: 17px; line-height: 1.7; }
.de-feature { margin-bottom: 40px; }
.de-feature .de-card { flex-direction: row; }
.de-feature .de-card-img { flex: 0 0 56%; aspect-ratio: auto; }
.de-feature .de-card-body { padding: 32px 34px; justify-content: center; }
.de-feature .de-card-title { font-size: 26px; }
@media (max-width: 767px) {
  .de-feature .de-card { flex-direction: column; }
  .de-feature .de-card-img { aspect-ratio: 16 / 9; }
  .de-feature .de-card-body { padding: 20px 22px 22px; }
  .de-feature .de-card-title { font-size: 21px; }
}

/* ---------- Single post ---------- */
.de-post { background: var(--de-bg); }
.de-post-head { background: var(--de-ink); color: #fff; padding: 56px 0 120px; }
@media (min-width: 992px) { .de-post-head { padding-top: 190px; } }
.de-crumbs { font-size: 14px; color: rgba(255, 255, 255, .75); margin-bottom: 14px; }
.de-crumbs a { color: #fff; }
.de-crumbs a:hover { color: var(--de-green); text-decoration: none; }
.de-post-head h1 { color: #fff; font-size: 40px; line-height: 1.2; font-weight: 800; max-width: 860px; margin: 0 0 16px; }
.de-post-meta { margin: 0; color: rgba(255, 255, 255, .85); font-size: 15px; }
.de-post-meta span + span::before { content: "\2022"; color: var(--de-green); padding: 0 10px; }
.de-post-wrap { max-width: 860px; margin: -90px auto 0; position: relative; }
.de-post-figure { margin: 0 0 0; border-radius: 14px 14px 0 0; overflow: hidden; background: var(--de-green-soft); box-shadow: 0 14px 40px rgba(17, 46, 59, .18); }
.de-post-figure img { display: block; width: 100%; height: auto; aspect-ratio: 15 / 7; object-fit: cover; }
.de-post-body {
  background: #fff; border-radius: 0 0 14px 14px; padding: 44px 56px 48px; margin-bottom: 60px;
  color: var(--de-text); font-size: 17px; line-height: 1.75;
}
.de-post-body > p:first-of-type { font-size: 19px; color: var(--de-ink); }
.de-post-body h2 { color: var(--de-ink); font-size: 27px; line-height: 1.3; font-weight: 800; margin: 42px 0 14px; }
.de-post-body h3 { color: var(--de-ink); font-size: 20px; line-height: 1.35; font-weight: 700; margin: 28px 0 8px; }
.de-post-body p { margin: 0 0 18px; }
.de-post-body ul, .de-post-body ol { margin: 0 0 20px; padding-left: 22px; }
.de-post-body li { margin-bottom: 8px; }
.de-post-body a { color: var(--de-green-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.de-post-body a:hover { color: var(--de-ink); }
.de-post-body strong { color: var(--de-ink); }

.de-quick {
  background: var(--de-green-soft); border-left: 4px solid var(--de-green-deep); border-radius: 8px;
  padding: 18px 22px; margin: 0 0 28px; font-size: 16px;
}
.de-quick p { margin: 0 0 8px; }
.de-quick p:last-child { margin-bottom: 0; }
.de-quick-label { font-weight: 800; color: var(--de-green-deep); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }

.de-toc { border: 1px solid var(--de-line); border-radius: 10px; padding: 16px 22px; margin: 0 0 30px; font-size: 16px; }
.de-toc p { margin: 0 0 8px; font-weight: 800; color: var(--de-ink); }
.de-toc ol { margin: 0; }
.de-toc li { margin-bottom: 4px; }

.de-table-wrap { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--de-line); border-radius: 10px; }
.de-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; min-width: 520px; }
.de-table th, .de-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--de-line); }
.de-table thead th { background: var(--de-ink); color: #fff; font-weight: 700; }
.de-table tbody tr:nth-child(even) { background: #fafbf8; }
.de-table tbody tr:last-child td { border-bottom: 0; }
.de-table td:first-child { font-weight: 700; color: var(--de-ink); }

.de-tip { border: 1px dashed var(--de-green); border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; background: #fcfdf9; font-size: 16px; }
.de-tip strong { color: var(--de-green-deep); }

.de-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--de-ink); color: #fff; border-radius: 12px; padding: 24px 26px; margin: 34px 0;
}
.de-cta p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 16px; line-height: 1.6; }
.de-cta .de-cta-title { color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 4px; }
.de-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.de-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
  border-radius: 30px; font-weight: 800; font-size: 15px; text-decoration: none !important; white-space: nowrap;
}
.de-post-body .de-btn-call, .de-btn-call { background: #fff; color: var(--de-ink); }
.de-post-body .de-btn-wa, .de-btn-wa { background: var(--de-wa); color: #fff; }
.de-btn:hover { opacity: .9; }

.de-post-body .drive-faq { padding: 0; margin: 40px 0 0; }

.de-more { padding: 10px 0 50px; }
.de-more-title { color: var(--de-ink); font-size: 26px; font-weight: 800; margin: 0 0 24px; }
.de-more-all { text-align: center; margin: 0; }
.de-more-all a { font-weight: 700; color: var(--de-green-deep); }

/* Home page section */
.de-home-blog { background: var(--de-bg); }
.de-home-blog .rn-section-title { margin-bottom: 36px; }

@media (max-width: 991px) {
  .de-post-head h1 { font-size: 32px; }
  .de-post-body { padding: 34px 32px 38px; }
}
@media (max-width: 575px) {
  .de-post-head { padding: 34px 0 80px; }
  .de-post-head h1 { font-size: 26px; }
  .de-post-meta { font-size: 14px; }
  .de-post-wrap { margin-top: -60px; }
  .de-post-body { padding: 26px 18px 30px; font-size: 16.5px; }
  .de-post-body > p:first-of-type { font-size: 17.5px; }
  .de-post-body h2 { font-size: 23px; margin-top: 34px; }
  .de-post-figure { border-radius: 10px 10px 0 0; }
  .de-cta { padding: 20px; }
  .de-cta-btns, .de-cta-btns .de-btn { width: 100%; }
}
