/* DueDateTool.org - Left Sidebar Layout with Sticky Features */
:root {
  --ddt-primary: #ec4899;
  --ddt-primary-light: #fce7f3;
  --ddt-primary-dark: #be185d;
  --ddt-secondary: #f472b6;
  --ddt-accent: #fbbf24;
  --ddt-text: #374151;
  --ddt-text-light: #6b7280;
  --ddt-bg: #fff1f2;
  --ddt-white: #ffffff;
  --ddt-sidebar: #fdf2f8;
  --ddt-radius: 12px;
  --ddt-shadow: 0 2px 12px rgba(236,72,153,0.08);
  --ddt-shadow-lg: 0 8px 32px rgba(236,72,153,0.12);
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:Georgia, 'Times New Roman', serif; background:var(--ddt-bg); color:var(--ddt-text); line-height:1.7; }

/* Layout: Left Sidebar + Right Content */
.ddt-layout { display:flex; min-height:100vh; }
.ddt-sidebar { width:260px; background:var(--ddt-sidebar); border-right:1px solid var(--ddt-primary-light); position:fixed; height:100vh; overflow-y:auto; padding:24px 0; z-index:100; }
.ddt-sidebar-logo { display:flex; align-items:center; gap:10px; padding:0 24px 24px; font-weight:800; font-size:1.2rem; color:var(--ddt-primary); text-decoration:none; border-bottom:1px solid var(--ddt-primary-light); margin-bottom:16px; }
.ddt-sidebar-logo svg { width:28px; height:28px; }
.ddt-sidebar-section { padding:0 16px; margin-bottom:20px; }
.ddt-sidebar-title { font-size:0.75rem; text-transform:uppercase; letter-spacing:1px; color:var(--ddt-text-light); margin-bottom:8px; padding:0 8px; font-weight:600; }
.ddt-sidebar-link { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; color:var(--ddt-text); text-decoration:none; font-size:0.9rem; transition:all 0.2s; position:relative; }
.ddt-sidebar-link:hover { background:var(--ddt-primary-light); color:var(--ddt-primary-dark); }
.ddt-sidebar-link.active { background:var(--ddt-primary-light); color:var(--ddt-primary-dark); font-weight:600; }
.ddt-sidebar-link.active::before { content:''; position:absolute; left:0; top:8px; bottom:8px; width:3px; background:var(--ddt-primary); border-radius:0 3px 3px 0; }
.ddt-sidebar-link svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2; flex-shrink:0; }
.ddt-sidebar-footer { padding:16px; margin-top:auto; border-top:1px solid var(--ddt-primary-light); font-size:0.8rem; color:var(--ddt-text-light); }

/* Main Content */
.ddt-main { margin-left:260px; flex:1; min-height:100vh; }
.ddt-container { max-width:900px; margin:0 auto; padding:0 32px; }

/* Hero */
.ddt-hero { background:linear-gradient(135deg, var(--ddt-primary-light) 0%, var(--ddt-white) 60%); padding:60px 0 40px; }
.ddt-hero h1 { font-size:2.6rem; font-weight:700; color:var(--ddt-primary-dark); margin-bottom:16px; line-height:1.2; font-family:Georgia, serif; }
.ddt-hero p { font-size:1.15rem; color:var(--ddt-text-light); max-width:600px; margin-bottom:28px; }
.ddt-hero-badge { display:inline-flex; align-items:center; gap:6px; background:var(--ddt-white); padding:8px 16px; border-radius:20px; font-size:0.85rem; color:var(--ddt-primary-dark); border:1px solid var(--ddt-primary-light); margin-bottom:20px; }

/* Tool List (Timeline Style) */
.ddt-tool-list { background:var(--ddt-white); border-radius:var(--ddt-radius); box-shadow:var(--ddt-shadow); overflow:hidden; border:1px solid var(--ddt-primary-light); }
.ddt-tool-item { display:flex; align-items:flex-start; gap:16px; padding:20px 24px; border-bottom:1px solid var(--ddt-primary-light); transition:all 0.2s; position:relative; text-decoration:none; color:var(--ddt-text); }
.ddt-tool-item:last-child { border-bottom:none; }
.ddt-tool-item:hover { background:var(--ddt-primary-light); }
.ddt-tool-item:hover::before { content:''; position:absolute; left:0; top:12px; bottom:12px; width:3px; background:var(--ddt-primary); border-radius:0 3px 3px 0; }
.ddt-tool-icon { width:44px; height:44px; background:var(--ddt-primary-light); border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ddt-tool-icon svg { width:22px; height:22px; stroke:var(--ddt-primary); fill:none; stroke-width:2; }
.ddt-tool-content { flex:1; }
.ddt-tool-content h3 { font-size:1.1rem; color:var(--ddt-primary-dark); margin-bottom:4px; font-weight:700; }
.ddt-tool-content p { font-size:0.9rem; color:var(--ddt-text-light); line-height:1.5; }
.ddt-tool-arrow { color:var(--ddt-primary); opacity:0; transition:opacity 0.2s; }
.ddt-tool-item:hover .ddt-tool-arrow { opacity:1; }

/* Timeline Section */
.ddt-timeline { padding:40px 0; }
.ddt-timeline-title { font-size:1.5rem; color:var(--ddt-primary-dark); margin-bottom:24px; font-weight:700; }
.ddt-timeline-item { display:flex; gap:16px; margin-bottom:20px; position:relative; padding-left:32px; }
.ddt-timeline-item::before { content:''; position:absolute; left:8px; top:8px; bottom:-28px; width:2px; background:var(--ddt-primary-light); }
.ddt-timeline-item:last-child::before { display:none; }
.ddt-timeline-dot { position:absolute; left:0; top:6px; width:18px; height:18px; background:var(--ddt-primary); border-radius:50%; border:3px solid var(--ddt-white); box-shadow:0 0 0 2px var(--ddt-primary-light); }
.ddt-timeline-content { background:var(--ddt-white); padding:16px 20px; border-radius:var(--ddt-radius); box-shadow:var(--ddt-shadow); flex:1; }
.ddt-timeline-content h4 { color:var(--ddt-primary-dark); margin-bottom:4px; font-size:1rem; }
.ddt-timeline-content p { color:var(--ddt-text-light); font-size:0.9rem; }

/* Buttons */
.ddt-btn { background:var(--ddt-primary); color:var(--ddt-white); border:none; padding:12px 24px; border-radius:var(--ddt-radius); font-size:1rem; font-weight:600; cursor:pointer; transition:all 0.2s; display:inline-flex; align-items:center; gap:8px; text-decoration:none; font-family:Georgia, serif; }
.ddt-btn:hover { background:var(--ddt-primary-dark); transform:translateY(-1px); }
.ddt-btn-secondary { background:var(--ddt-primary-light); color:var(--ddt-primary-dark); }
.ddt-btn-secondary:hover { background:#fbcfe8; }

/* Cards */
.ddt-card { background:var(--ddt-white); border-radius:var(--ddt-radius); padding:24px; box-shadow:var(--ddt-shadow); border:1px solid var(--ddt-primary-light); }

/* Forms */
.ddt-form-group { margin-bottom:20px; }
.ddt-form-group label { display:block; font-weight:600; margin-bottom:8px; color:var(--ddt-text); font-size:0.95rem; }
.ddt-form-group input, .ddt-form-group select { width:100%; padding:12px 14px; border:2px solid #e5e7eb; border-radius:var(--ddt-radius); font-size:1rem; transition:all 0.2s; font-family:Georgia, serif; }
.ddt-form-group input:focus, .ddt-form-group select:focus { outline:none; border-color:var(--ddt-primary); box-shadow:0 0 0 3px rgba(236,72,153,0.1); }
.ddt-form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* Results */
.ddt-result-card { background:linear-gradient(135deg, var(--ddt-primary-light), var(--ddt-white)); border-radius:var(--ddt-radius); padding:24px; margin-top:20px; border:1px solid var(--ddt-primary-light); }
.ddt-result-big { font-size:2rem; font-weight:800; color:var(--ddt-primary); margin-bottom:12px; }
.ddt-result-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:12px; margin-top:16px; }
.ddt-result-item { background:var(--ddt-white); padding:14px; border-radius:var(--ddt-radius); text-align:center; box-shadow:0 2px 8px rgba(0,0,0,0.04); }

/* Tabs */
.ddt-tabs { display:flex; background:var(--ddt-primary-light); overflow-x:auto; scrollbar-width:none; }
.ddt-tabs::-webkit-scrollbar { display:none; }
.ddt-tab { flex:1; min-width:140px; padding:14px 10px; text-align:center; cursor:pointer; border:none; background:transparent; font-weight:600; font-size:0.85rem; color:var(--ddt-text-light); transition:all 0.3s; display:flex; flex-direction:column; align-items:center; gap:6px; position:relative; font-family:Georgia, serif; }
.ddt-tab svg { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; }
.ddt-tab:hover { color:var(--ddt-primary); }
.ddt-tab.active { color:var(--ddt-primary); background:var(--ddt-white); }
.ddt-tab.active::after { content:''; position:absolute; bottom:0; left:20%; right:20%; height:3px; background:var(--ddt-primary); border-radius:3px 3px 0 0; }
.ddt-tab-content { display:none; padding:28px; }
.ddt-tab-content.active { display:block; animation:ddtFadeIn 0.3s ease; }
@keyframes ddtFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* Blog */
.ddt-blog-list { display:grid; gap:16px; }
.ddt-blog-card { display:flex; gap:16px; background:var(--ddt-white); border-radius:var(--ddt-radius); padding:16px; box-shadow:var(--ddt-shadow); border:1px solid var(--ddt-primary-light); transition:all 0.2s; text-decoration:none; color:var(--ddt-text); }
.ddt-blog-card:hover { background:var(--ddt-primary-light); }
.ddt-blog-card:hover::before { content:''; position:absolute; left:0; top:8px; bottom:8px; width:3px; background:var(--ddt-primary); border-radius:0 3px 3px 0; }
.ddt-blog-meta { display:flex; gap:12px; font-size:0.8rem; color:var(--ddt-text-light); margin-bottom:6px; }
.ddt-blog-card h3 { font-size:1.05rem; color:var(--ddt-primary-dark); margin-bottom:4px; }
.ddt-blog-card p { font-size:0.85rem; color:var(--ddt-text-light); line-height:1.5; }

/* Article */
.ddt-article-header { background:linear-gradient(135deg, var(--ddt-primary-light), var(--ddt-white)); padding:40px 0; }
.ddt-article-body { max-width:720px; margin:0 auto; padding:40px 32px; font-size:1.05rem; line-height:1.8; }
.ddt-article-body h2 { color:var(--ddt-primary-dark); margin:32px 0 16px; font-size:1.3rem; font-weight:700; }
.ddt-article-body p { margin-bottom:16px; }
.ddt-article-body ul { margin:16px 0; padding-left:24px; }
.ddt-article-body li { margin-bottom:8px; }

/* Sticky Features Bar */
.ddt-sticky-bar { position:fixed; bottom:0; left:260px; right:0; background:var(--ddt-white); border-top:1px solid var(--ddt-primary-light); padding:12px 32px; display:flex; gap:16px; align-items:center; justify-content:space-between; z-index:90; box-shadow:0 -4px 20px rgba(0,0,0,0.05); }
.ddt-sticky-bar-left { display:flex; gap:12px; align-items:center; }
.ddt-sticky-btn { background:var(--ddt-primary-light); color:var(--ddt-primary-dark); border:none; padding:8px 16px; border-radius:20px; font-size:0.85rem; font-weight:600; cursor:pointer; transition:all 0.2s; display:inline-flex; align-items:center; gap:6px; font-family:Georgia, serif; }
.ddt-sticky-btn:hover { background:var(--ddt-primary); color:var(--ddt-white); }
.ddt-sticky-btn svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; }

/* Tool Embed */
.ddt-tool-embed { background:var(--ddt-primary-light); border-radius:var(--ddt-radius); padding:20px; margin:24px 0; border:1px solid var(--ddt-secondary); }

/* Disclaimer */
.ddt-disclaimer { background:#fef3c7; border-left:4px solid #f59e0b; padding:16px 20px; border-radius:0 12px 12px 0; margin:20px 0; font-size:0.9rem; color:#92400e; }

/* Ad slots */
.ddt-ad-slot {
  width:100%;
  height:250px;
  background:var(--ddt-primary-light);
  border:2px dashed var(--ddt-primary);
  border-radius:16px;
  display:none !important;
  align-items:center;
  justify-content:center;
  color:var(--ddt-primary-dark);
  font-size:0.85rem;
  opacity:0.6;
  margin:20px 0;
  padding:15px;
  box-sizing:border-box;
}
.ddt-ad-slot.has-content {
  display:flex !important;
}

/* Footer */
.ddt-footer { background:var(--ddt-primary-dark); color:var(--ddt-white); padding:24px 32px; margin-top:60px; text-align:center; font-size:0.85rem; }
.ddt-footer a { color:rgba(255,255,255,0.7); text-decoration:none; margin:0 12px; }
.ddt-footer a:hover { color:var(--ddt-white); }

/* Mobile */
@media (max-width:768px) {
  .ddt-sidebar { width:100%; position:relative; height:auto; border-right:none; border-bottom:1px solid var(--ddt-primary-light); padding:16px 0; }
  .ddt-main { margin-left:0; }
  .ddt-layout { flex-direction:column; }
  .ddt-hero h1 { font-size:2rem; }
  .ddt-form-row { grid-template-columns:1fr; }
  .ddt-sticky-bar { left:0; }
  .ddt-container { padding:0 16px; }
}

/* Utility */
.ddt-text-center { text-align:center; }
.ddt-mt-20 { margin-top:20px; }
.ddt-mb-20 { margin-bottom:20px; }
.ddt-hidden { display:none; }

/* ===== ADDITIONAL REQUIRED STYLES ===== */

/* Whole-card clickable */
a.ddt-article-card,
a.ddt-tool-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.ddt-article-card *,
a.ddt-tool-card * {
  pointer-events: none;
}

/* Inline tool card in articles */
a.ddt-inline-tool {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ddt-primary-light);
  border: 1px solid var(--ddt-secondary);
  border-radius: var(--ddt-radius);
  padding: 16px 20px;
  margin: 24px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
a.ddt-inline-tool:hover {
  background: #fbcfe8;
  transform: translateY(-1px);
  box-shadow: var(--ddt-shadow);
}
a.ddt-inline-tool * {
  pointer-events: none;
}
a.ddt-inline-tool img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
a.ddt-inline-tool div {
  flex: 1;
}
a.ddt-inline-tool strong {
  display: block;
  color: var(--ddt-primary-dark);
  font-size: 1rem;
  margin-bottom: 4px;
}
a.ddt-inline-tool span {
  display: block;
  font-size: 0.9rem;
  color: var(--ddt-text-light);
  margin-bottom: 4px;
}
a.ddt-inline-tool em {
  display: block;
  font-size: 0.8rem;
  color: var(--ddt-primary);
  font-style: normal;
}

/* Breadcrumb navigation */
.ddt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--ddt-text-light);
}
.ddt-breadcrumb a {
  color: var(--ddt-primary);
  text-decoration: none;
}
.ddt-breadcrumb a:hover {
  text-decoration: underline;
}
.ddt-breadcrumb-sep {
  color: var(--ddt-text-light);
  opacity: 0.5;
}

/* Author card on about page */
.ddt-author-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--ddt-white);
  border-radius: var(--ddt-radius);
  padding: 32px;
  box-shadow: var(--ddt-shadow);
  border: 1px solid var(--ddt-primary-light);
  margin-bottom: 32px;
}
.ddt-author-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--ddt-primary-light);
  flex-shrink: 0;
}
.ddt-author-info h2 {
  color: var(--ddt-primary-dark);
  margin-bottom: 8px;
  font-size: 1.5rem;
}
.ddt-author-info .ddt-author-title {
  color: var(--ddt-primary);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.ddt-author-info p {
  color: var(--ddt-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
.ddt-author-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.ddt-author-cred-item {
  background: var(--ddt-primary-light);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
}
.ddt-author-cred-item strong {
  display: block;
  color: var(--ddt-primary-dark);
  margin-bottom: 2px;
}

/* Chart containers */
.ddt-chart-container {
  background: var(--ddt-white);
  border-radius: var(--ddt-radius);
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--ddt-shadow);
  border: 1px solid var(--ddt-primary-light);
  position: relative;
}
.ddt-chart-container canvas,
.ddt-chart-container svg {
  width: 100%;
  height: auto;
}
.ddt-chart-title {
  font-size: 1rem;
  color: var(--ddt-primary-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

/* Sticky features: history, compare, export */
.ddt-history-panel {
  background: var(--ddt-white);
  border-radius: var(--ddt-radius);
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--ddt-shadow);
  border: 1px solid var(--ddt-primary-light);
}
.ddt-history-panel h4 {
  color: var(--ddt-primary-dark);
  margin-bottom: 12px;
  font-size: 1rem;
}
.ddt-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ddt-history-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ddt-primary-light);
  font-size: 0.9rem;
}
.ddt-history-list li:last-child {
  border-bottom: none;
}
.ddt-history-list li button {
  background: transparent;
  border: none;
  color: var(--ddt-primary);
  cursor: pointer;
  font-size: 0.8rem;
}
.ddt-history-list li button:hover {
  color: var(--ddt-primary-dark);
}

/* Compare table */
.ddt-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.ddt-compare-table th,
.ddt-compare-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ddt-primary-light);
}
.ddt-compare-table th {
  background: var(--ddt-primary-light);
  color: var(--ddt-primary-dark);
  font-weight: 600;
}
.ddt-compare-table td {
  background: var(--ddt-white);
}

/* Export buttons */
.ddt-export-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.ddt-export-bar button {
  background: var(--ddt-primary-light);
  color: var(--ddt-primary-dark);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: Georgia, serif;
}
.ddt-export-bar button:hover {
  background: var(--ddt-primary);
  color: var(--ddt-white);
}

/* Footer navigation */
.ddt-footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 40px 32px;
  background: #fdf2f8;
  border-top: 1px solid var(--ddt-primary-light);
  margin-top: 40px;
}
.ddt-footer-nav h4 {
  color: var(--ddt-primary-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.ddt-footer-nav a {
  display: block;
  color: var(--ddt-text-light);
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.ddt-footer-nav a:hover {
  color: var(--ddt-primary);
}

/* Article tail: two-column layout */
.ddt-article-tail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--ddt-primary-light);
}
@media (max-width: 768px) {
  .ddt-article-tail {
    grid-template-columns: 1fr;
  }
}

/* Contact page no-form block */
.ddt-contact-block {
  background: var(--ddt-white);
  border-radius: var(--ddt-radius);
  padding: 32px;
  box-shadow: var(--ddt-shadow);
  border: 1px solid var(--ddt-primary-light);
  margin-bottom: 24px;
}
.ddt-contact-block h2 {
  color: var(--ddt-primary-dark);
  margin-bottom: 16px;
}
.ddt-contact-block p {
  color: var(--ddt-text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}
.ddt-contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ddt-primary-light);
  padding: 10px 18px;
  border-radius: 20px;
  color: var(--ddt-primary-dark);
  font-weight: 600;
  text-decoration: none;
  margin: 8px 0;
}
.ddt-contact-email:hover {
  background: var(--ddt-primary);
  color: var(--ddt-white);
}

/* Statement block (contact/disclaimer) */
.ddt-statement {
  background: #f3f4f6;
  border-radius: var(--ddt-radius);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 0.95rem;
  color: var(--ddt-text);
  line-height: 1.7;
  border-left: 4px solid var(--ddt-primary);
}
.ddt-statement strong {
  color: var(--ddt-primary-dark);
  display: block;
  margin-bottom: 8px;
}

/* Mobile sidebar toggle */
.ddt-mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: var(--ddt-primary);
  color: var(--ddt-white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .ddt-mobile-toggle {
    display: flex;
  }
  .ddt-sidebar {
    display: none !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--ddt-sidebar);
    border-right: none;
    border-bottom: 1px solid var(--ddt-primary-light);
    z-index: 150;
    padding: 16px 0;
    transform: none;
    transition: none;
  }
  .ddt-sidebar.open {
    display: flex !important;
    flex-direction: column !important;
  }
  .ddt-sidebar-section {
    width: 100%;
    padding: 0;
  }
  .ddt-sidebar-link {
    display: flex;
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid var(--ddt-primary-light);
    border-radius: 0;
  }
  .ddt-sidebar-link:last-child {
    border-bottom: none;
  }
  .ddt-sidebar-logo {
    display: none;
  }
  .ddt-sidebar-footer {
    display: none;
  }
  .ddt-main {
    margin-left: 0;
  }
}

/* Section titles */
.ddt-section-title {
  font-size: 1.6rem;
  color: var(--ddt-primary-dark);
  margin-bottom: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ddt-section-title svg {
  width: 24px;
  height: 24px;
  stroke: var(--ddt-primary);
  fill: none;
  stroke-width: 2;
}

/* Stats grid for homepage */
.ddt-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.ddt-stat-card {
  background: var(--ddt-white);
  border-radius: var(--ddt-radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--ddt-shadow);
  border: 1px solid var(--ddt-primary-light);
}
.ddt-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ddt-primary);
  display: block;
  margin-bottom: 4px;
}
.ddt-stat-label {
  font-size: 0.85rem;
  color: var(--ddt-text-light);
}

/* FAQ accordion */
.ddt-faq-item {
  background: var(--ddt-white);
  border-radius: var(--ddt-radius);
  margin-bottom: 12px;
  box-shadow: var(--ddt-shadow);
  border: 1px solid var(--ddt-primary-light);
  overflow: hidden;
}
.ddt-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ddt-primary-dark);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: Georgia, serif;
  font-size: 1rem;
}
.ddt-faq-question:hover {
  background: var(--ddt-primary-light);
}
.ddt-faq-answer {
  padding: 0 20px 16px;
  color: var(--ddt-text-light);
  line-height: 1.7;
  display: none;
}
.ddt-faq-answer.open {
  display: block;
}

/* Tag pills */
.ddt-tag {
  display: inline-block;
  background: var(--ddt-primary-light);
  color: var(--ddt-primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* Scrollbar styling for sidebar */
.ddt-sidebar::-webkit-scrollbar {
  width: 6px;
}
.ddt-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.ddt-sidebar::-webkit-scrollbar-thumb {
  background: var(--ddt-primary-light);
  border-radius: 3px;
}
.ddt-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--ddt-secondary);
}

/* detection-fix: pointer-events:none */

/* Tool link cards */
a.ddt-tool-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: var(--ddt-white);
  border-radius: var(--ddt-radius);
  padding: 16px;
  box-shadow: var(--ddt-shadow);
  border: 1px solid var(--ddt-primary-light);
  transition: all 0.2s;
  position: relative;
}
a.ddt-tool-link:hover {
  background: var(--ddt-primary-light);
}
a.ddt-tool-link * {
  pointer-events: none;
}

/* === Post Template V3.0 CSS Injection for ddt === */



.ddt-post-header {
  margin-bottom: 24px;
}
.ddt-post-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.ddt-post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.ddt-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.ddt-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ddt-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.ddt-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
.ddt-post-content p {
  margin-bottom: 1.2em;
}
.ddt-post-content h2 {
  font-size: 1.6rem;
  margin-top: 2em;
  margin-bottom: 0.8em;
}
.ddt-post-content h3 {
  font-size: 1.3rem;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
.ddt-post-footer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .ddt-post-footer {
    grid-template-columns: 1fr;
  }
}
.ddt-related-articles h3,
.ddt-recommended-tools h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}
.ddt-related-list,
.ddt-tool-rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ddt-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ddt-related-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.ddt-related-card * {
  pointer-events: none;
}
.ddt-related-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #1a73e8;
}
.ddt-related-card p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}
.ddt-author-box {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 32px 0;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .ddt-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.ddt-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.ddt-author-info {
  flex: 1;
}
.ddt-author-name {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.ddt-author-title {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}
.ddt-author-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 8px;
}
.ddt-author-location {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}
.ddt-author-bio-link {
  font-size: 0.9rem;
  color: #1a73e8;
  text-decoration: none;
}
.ddt-author-bio-link:hover {
  text-decoration: underline;
}


/* ---- Navigation Container Fix ---- */
.ddt-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--ddt-max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}


/* ---- Breadcrumb Align Fix ---- */
.ddt-breadcrumb {
  max-width: var(--ddt-max-width, 1200px);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}


/* ---- Mobile Menu Active Fix ---- */
@media (max-width: 768px) {
  .ddt-nav-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .ddt-nav-links.active {
    display: flex !important;
  }
  .ddt-nav-links li {
    width: 100%;
    list-style: none;
  }
  .ddt-nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
  }
  .ddt-nav-links a:last-child {
    border-bottom: none;
  }
}


/* ---- Hamburger Button Fix ---- */
.ddt-nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
@media (max-width: 768px) {
  .ddt-nav-hamburger {
    display: block !important;
  }
}
