/*
Theme Name: DailyTime24 Lite
Author: DailyTime24
Description: Ultra-lightweight, zero-bloat theme optimized for Google AdX/AdSense, Core Web Vitals, and Jobs/Yojana/Finance portals.
Version: 1.0.0
Text Domain: dailytime24-lite
*/

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #1d4ed8;
  --accent: #b91c1c;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.dt-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Minimal Top Bar (Hidden on Full-Width Landing Pages) */
.dt-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.dt-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.dt-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent);
}
.dt-logo span { color: var(--primary); }
.dt-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}
.dt-nav a { color: var(--text); }
.dt-nav a:hover { color: var(--primary); text-decoration: none; }

/* Main Content Area */
.dt-main { padding: 24px 0 40px; min-height: 75vh; }
.dt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.dt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.dt-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dt-post-card h2 { font-size: 18px; margin: 0 0 8px; line-height: 1.4; }
.dt-post-card h2 a { color: var(--text); }
.dt-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.dt-excerpt { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.dt-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none !important;
  align-self: flex-start;
}

/* Single Post / Page */
.dt-article h1 { font-size: 28px; line-height: 1.3; margin: 0 0 12px; }
.dt-content img { max-width: 100%; height: auto; border-radius: 8px; }
.dt-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.dt-content th, .dt-content td { border: 1px solid var(--border); padding: 10px; text-align: left; }
.dt-content th { background: #f1f5f9; }

/* Clean Policy Footer */
.dt-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 13px;
  color: var(--muted);
}
.dt-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.dt-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.dt-footer-links a { color: var(--muted); }

/* Pagination & 404 */
.dt-pagination { margin-top: 24px; display: flex; gap: 8px; }
.dt-pagination .page-numbers {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}
.dt-pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (max-width: 600px) {
  .dt-card { padding: 16px; }
  .dt-article h1 { font-size: 22px; }
}
.dt-grid > *:not(.dt-post-card) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  margin: 0 auto 16px !important;
}
.dt-grid > *:not(.dt-post-card) > div {
  margin: 0 auto !important;
}