/*
 * Blog / Article template styles — Developmental Dentistry
 * Loaded only on single posts, the blog archive, and the Patient Education
 * page template (see functions.php). Does NOT style the site header/footer —
 * those come from the Elementor Theme Builder templates already live on the
 * site via Hello Biz's get_header() / get_footer().
 */

:root {
  --dd-dark: #272727;
  --dd-gray: #6b6b6b;
  --dd-gray-light: #999999;
  --dd-gold: #e9d17c;
  --dd-mint: #dee8e8;
  --dd-bg-light: #f8f8f6;
  --dd-white: #ffffff;
  --dd-font-heading: 'Kalnia', serif;
  --dd-font-body: 'Inter', sans-serif;
  --dd-content-width: 1140px;
}

.dd-wrap {
  max-width: var(--dd-content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================
   BREADCRUMB
   ============================ */
.dd-breadcrumb {
  font-family: var(--dd-font-body);
  font-size: 14px;
  color: var(--dd-gray-light);
  padding-top: 40px;
}
.dd-breadcrumb a { color: var(--dd-gray-light); text-decoration: none; }
.dd-breadcrumb a:hover { color: var(--dd-dark); }

/* ============================
   ARTICLE HEADER
   ============================ */
.dd-article-header { padding-top: 28px; }

.dd-category-tag {
  display: inline-block;
  background: var(--dd-gold);
  color: var(--dd-dark);
  font-family: var(--dd-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  text-decoration: none;
}

.dd-entry-title {
  font-family: var(--dd-font-heading);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.15;
  color: var(--dd-dark);
  max-width: 900px;
  margin: 0 0 20px;
}

.dd-entry-meta {
  font-family: var(--dd-font-body);
  font-size: 15px;
  color: var(--dd-gray-light);
}
.dd-entry-meta .sep { margin: 0 10px; }

/* ============================
   FEATURED IMAGE
   ============================ */
.dd-featured-image {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--dd-mint);
}
.dd-featured-image img { width: 100%; height: auto; display: block; }

/* ============================
   TWO-COLUMN BODY
   ============================ */
.dd-article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  margin-top: 56px;
  align-items: start;
}

.dd-entry-content {
  font-family: var(--dd-font-body);
  font-size: 19px;
  line-height: 1.65;
  color: var(--dd-gray);
}
.dd-entry-content p { margin-bottom: 28px; }
.dd-entry-content h2 {
  font-family: var(--dd-font-heading);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: var(--dd-dark);
  margin: 48px 0 20px;
  scroll-margin-top: 100px; /* keeps sticky headers from covering the anchor target */
}
.dd-entry-content h2:first-child { margin-top: 0; }

.dd-entry-content h3 {
  font-family: var(--dd-font-body);
  font-weight: 700;
  font-size: 19px;
  color: var(--dd-dark);
  margin: 32px 0 8px;
}

.dd-entry-content ul { margin: 0 0 32px; padding: 0; list-style: none; }
.dd-entry-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 18px;
}
.dd-entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dd-gold);
}

.dd-entry-content blockquote {
  border-left: 4px solid var(--dd-gold);
  padding: 4px 0 4px 28px;
  margin: 40px 0;
  font-family: var(--dd-font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--dd-dark);
}

.dd-entry-content a { color: var(--dd-dark); text-decoration: underline; text-decoration-color: var(--dd-gold); }

/* ============================
   SIDEBAR
   ============================ */
.dd-sidebar-cta {
  background: var(--dd-dark);
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 32px;
}
.dd-sidebar-cta h3 {
  font-family: var(--dd-font-heading);
  font-weight: 600;
  font-size: 22px;
  color: var(--dd-white);
  margin: 0 0 12px;
  line-height: 1.2;
}
.dd-sidebar-cta p {
  font-family: var(--dd-font-body);
  font-size: 14px;
  color: #cccccc;
  margin: 0 0 20px;
}

.dd-btn-gold {
  display: inline-block;
  background: var(--dd-gold);
  color: var(--dd-dark);
  font-family: var(--dd-font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.dd-sidebar-toc {
  background: var(--dd-bg-light);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 100px;
}
.dd-sidebar-toc .dd-toc-label {
  font-family: var(--dd-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dd-gray-light);
  margin-bottom: 16px;
}
.dd-sidebar-toc ul { list-style: none; margin: 0; padding: 0; }
.dd-sidebar-toc ul li { margin-bottom: 14px; }
.dd-sidebar-toc ul li a {
  font-family: var(--dd-font-body);
  font-size: 15px;
  color: var(--dd-dark);
  text-decoration: none;
}
.dd-sidebar-toc ul li a:hover { color: #b08d57; }

/* ============================
   END-OF-ARTICLE CTA
   ============================ */
.dd-end-cta {
  background: var(--dd-dark);
  margin-top: 96px;
  padding: 72px 20px;
  text-align: center;
}
.dd-end-cta h2 {
  font-family: var(--dd-font-heading);
  font-weight: 600;
  font-size: 36px;
  color: var(--dd-white);
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.2;
}
.dd-end-cta p {
  font-family: var(--dd-font-body);
  font-size: 16px;
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ============================
   ARCHIVE / ARTICLE GRID
   Used by archive.php and page-patient-education.php
   ============================ */
.dd-archive-header {
  padding: 56px 0 24px;
  text-align: center;
}
.dd-archive-header h1 {
  font-family: var(--dd-font-heading);
  font-weight: 600;
  font-size: 40px;
  color: var(--dd-dark);
  margin: 0 0 12px;
}
.dd-archive-header p {
  font-family: var(--dd-font-body);
  font-size: 17px;
  color: var(--dd-gray);
  max-width: 640px;
  margin: 0 auto;
}

.dd-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 0 80px;
}

.dd-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.dd-card-image {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--dd-mint);
  overflow: hidden;
  margin-bottom: 20px;
}
.dd-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dd-card .dd-category-tag { margin-bottom: 14px; }
.dd-card h2 {
  font-family: var(--dd-font-heading);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: var(--dd-dark);
  margin: 0 0 10px;
}
.dd-card p {
  font-family: var(--dd-font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--dd-gray);
  margin: 0 0 12px;
}
.dd-card .dd-card-meta {
  font-family: var(--dd-font-body);
  font-size: 13px;
  color: var(--dd-gray-light);
}

.dd-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 80px;
  font-family: var(--dd-font-body);
}
.dd-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 100px;
  color: var(--dd-dark);
  text-decoration: none;
  font-size: 14px;
}
.dd-pagination .page-numbers.current {
  background: var(--dd-dark);
  color: var(--dd-white);
}

@media (max-width: 900px) {
  .dd-article-layout { grid-template-columns: 1fr; }
  .dd-entry-title { font-size: 32px; }
  .dd-card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .dd-card-grid { grid-template-columns: 1fr; }
}
