/* ========================================
   BLOG POST STYLES
   Alto Builders Blog — ADU Permit Timeline
   ======================================== */

/* ---- Hero Section ---- */
.blog-hero {
  position: relative;
  min-height: 70vh;
  background-image: url('../assets/images/blog/adu-permit-timeline-hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 60px 5%;
  margin-top: 80px;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to top,
    rgba(21, 46, 71, 0.85) 0%,
    rgba(28, 63, 96, 0.4) 40%,
    rgba(28, 63, 96, 0.15) 100%
  );
}

.blog-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.blog-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

/* ---- Blog Meta Bar ---- */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 5%;
  background: #1c3f60;
  color: rgba(255,255,255,0.85);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.blog-meta-date {
  white-space: nowrap;
}

.blog-meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-meta-tags span {
  background: rgba(255,255,255,0.12);
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Blog Content Container ---- */
.blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Section Backgrounds ---- */
.section-white {
  background: #ffffff;
  padding: 70px 5%;
}

.section-gray {
  background: #f9fafb;
  padding: 70px 5%;
}

/* ---- Blog Typography ---- */
.blog-container h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: #1c3f60;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
  line-height: 1.2;
}

.blog-container h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #1c3f60;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-container h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #1c3f60;
  margin-bottom: 8px;
}

.blog-container p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
  margin-bottom: 18px;
}

.blog-container ul,
.blog-container ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.blog-container li {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
  margin-bottom: 10px;
}

.blog-container strong {
  font-weight: 500;
  color: #333;
}

/* ---- Table of Contents ---- */
.toc {
  background: #f9fafb;
  border-left: 4px solid #1c3f60;
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: 0 6px 6px 0;
}

.toc h3 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1c3f60;
  margin-top: 0;
  margin-bottom: 16px;
}

.toc ol {
  counter-reset: toc-counter;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc li {
  counter-increment: toc-counter;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 400;
}

.toc li::before {
  content: counter(toc-counter) ". ";
  font-weight: 500;
  color: #1c3f60;
}

.toc a {
  color: #3a6c9f;
  text-decoration: none;
  transition: color 0.2s;
}

.toc a:hover {
  color: #1c3f60;
  text-decoration: underline;
}

/* ---- Data Tables ---- */
.table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', sans-serif;
  border-radius: 6px;
  overflow: hidden;
}

.blog-table thead th {
  background: #1c3f60;
  color: #ffffff;
  padding: 16px 24px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-table tbody td {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 300;
  color: #555;
  border-bottom: 1px solid #e8ecf0;
}

.blog-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.blog-table tbody tr.total-row {
  background: #eef3f8;
}

.blog-table tbody tr.total-row td {
  font-weight: 500;
  color: #1c3f60;
}

/* ---- Highlight Box ---- */
.highlight-box {
  background: #eef3f8;
  border-left: 4px solid #1c3f60;
  padding: 24px 28px;
  margin: 30px 0;
  border-radius: 0 6px 6px 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: #333;
}

/* ---- Tip List ---- */
.tip-list {
  counter-reset: tip-counter;
  list-style: none;
  padding-left: 0;
}

.tip-list > li {
  counter-increment: tip-counter;
  position: relative;
  padding-left: 56px;
  margin-bottom: 36px;
}

.tip-list > li::before {
  content: counter(tip-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  background: #1c3f60;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---- CTA Section ---- */
.cta-section {
  background: #1c3f60;
  padding: 80px 5%;
  text-align: center;
}

.cta-section h2 {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 35px auto;
}

.cta-btn {
  display: inline-block;
  padding: 16px 42px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #ffffff;
  color: #1c3f60;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .blog-hero {
    min-height: 55vh;
    padding: 40px 5%;
    margin-top: 70px;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 5%;
  }

  .blog-container h2 {
    font-size: 1.8rem;
  }

  .blog-container h3 {
    font-size: 1.3rem;
  }

  .section-white,
  .section-gray {
    padding: 50px 5%;
  }

  .toc {
    padding: 20px 22px;
  }

  .blog-table thead th,
  .blog-table tbody td {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .tip-list > li {
    padding-left: 48px;
  }

  .cta-section {
    padding: 60px 5%;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 1.65rem;
  }

  .blog-container h2 {
    font-size: 1.5rem;
  }

  .blog-table thead th,
  .blog-table tbody td {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}
