/* Blog Layout & Spacing */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-layout {
  display: flex;
  gap: 40px;
  margin: 40px auto;
  align-items: flex-start;
}

.blog-main {
  flex: 1;
  min-width: 0; /* Prevents overflow */
}

.blog-sidebar {
  width: 320px;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-post {
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px 60px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 60px;
}

/* Typography Enhancements */
.blog-post h1 {
  font-size: 38px;
  font-weight: 900;
  color: var(--bark);
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.8px;
}

.blog-post h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--olive-dark);
  margin-top: 44px;
  margin-bottom: 18px;
  letter-spacing: -0.4px;
}

.blog-post p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 24px;
}

/* Components */
.quick-answer {
  background: linear-gradient(135deg, var(--olive-light) 0%, #f0eed8 100%);
  border-left: 6px solid var(--olive);
  padding: 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 40px 0;
  font-size: 18px;
  line-height: 1.7;
}

.quick-answer strong {
  color: var(--olive-dark);
}

/* Table Styling */
.blog-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.blog-post th {
  background: var(--sand);
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-light);
  border-bottom: 2px solid var(--border-light);
}

.blog-post td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 16px;
}

.blog-post tr:last-child td {
  border-bottom: none;
}

.pro-tip {
  background: linear-gradient(135deg, var(--amber-light) 0%, #f9f0d4 100%);
  border-left: 6px solid var(--amber);
  padding: 28px 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 48px 0;
  font-size: 17px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  line-height: 1.6;
}

.pro-tip strong {
  color: #8a6510;
  font-weight: 800;
}

/* Lists */
.blog-post ul, .blog-post ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.blog-post li {
  margin-bottom: 12px;
  color: var(--text-mid);
  font-size: 17px;
}

.pronunciation-list {
  list-style: none;
  padding-left: 0 !important;
  margin: 32px 0;
}

.pronunciation-list li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.pronunciation-list li:last-child {
  border-bottom: none;
}

/* Pronunciation Box (for non-list versions) */
.pronunciation-box {
  background: var(--sand);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin: 32px 0;
  border-left: 4px solid var(--olive);
}

.pronunciation-box p {
  margin-bottom: 8px;
}

.pronunciation-box p:last-child {
  margin-bottom: 0;
}

/* Use Cases */
.use-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}

/* Support for ul version of use-cases */
ul.use-cases {
  list-style: none;
  padding-left: 0 !important;
}

ul.use-cases li {
  background: var(--sand);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s;
}

ul.use-cases li:hover {
  transform: translateX(5px);
}

.use-case {
  background: var(--sand);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s;
}

.use-case:hover {
  transform: translateX(5px);
}

.use-case span {
  font-size: 20px;
}

.timezone-note {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

/* FAQ Accordion */
.faq-accordion {
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-accordion summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  background: var(--white);
  transition: all .2s;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--bark);
}

.faq-accordion summary::after {
  content: '+';
  font-size: 20px;
  color: var(--olive);
  font-weight: 400;
}

.faq-accordion[open] summary::after {
  content: '−';
}

.faq-accordion summary:hover {
  background: var(--sand);
}

.faq-content {
  padding: 0 24px 20px;
  background: var(--white);
}

.faq-content p {
  margin-bottom: 0;
  font-size: 16px;
  color: var(--text-mid);
}

/* Generic Details/Summary support for standard posts */
.blog-post details {
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.blog-post summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--bark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.blog-post summary::-webkit-details-marker {
  display: none;
}

.blog-post summary::after {
  content: '+';
  font-size: 20px;
  color: var(--olive);
}

.blog-post details[open] summary::after {
  content: '−';
}

.blog-post summary:hover {
  background: var(--sand);
}

.blog-post details p {
  padding: 0 24px 20px;
  margin-bottom: 0;
  color: var(--text-mid);
}

/* Related Links Box */
.related-links {
  background: var(--olive-light);
  padding: 32px;
  border-radius: var(--radius);
  margin: 48px 0;
  border: 1px solid #c8d4a4;
}

.related-links h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--olive-dark);
}

.related-links a {
  display: inline-block;
  margin-right: 16px;
  margin-bottom: 8px;
  color: var(--olive-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--olive);
}

.related-links a:hover {
  background: var(--olive);
  color: var(--white);
}

/* Footer / Calls to Action */
.callout-box {
  background: var(--olive-light);
  padding: 32px;
  border-radius: var(--radius-sm);
  margin-top: 50px;
  border: 1px solid #c8d4a4;
  text-align: center;
}

.callout-box a {
  color: var(--olive-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--olive);
}

.callout-box a:hover {
  background: var(--olive);
  color: var(--white);
}

.author-note {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
}

/* Sidebar Specifics */
.sidebar-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.sidebar-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--bark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-converter .input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  height: 44px;
}

.mini-converter input {
  width: 120px; /* Perfect for 4 digits */
  flex-shrink: 0;
  padding: 0 12px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
  background: var(--sand);
}

.mini-converter input:focus {
  border-color: var(--olive);
  background: var(--white);
}

.mini-converter button {
  flex: 1;
  background: var(--olive);
  color: var(--white);
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.mini-converter button:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
}

.mini-result {
  font-size: 15px;
  font-weight: 800;
  color: var(--olive-dark);
  background: var(--olive-light);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid rgba(74, 93, 35, 0.1);
}

.mini-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  color: var(--olive);
  text-align: center;
  padding: 12px;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-layout {
    flex-direction: column;
    gap: 30px;
  }
  .blog-sidebar {
    width: 100%;
    position: static;
  }
}

/* Category Page Styles */
.blog-category-header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 30px;
}

.blog-category-header h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--bark);
  margin-bottom: 12px;
}

.blog-category-header p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-item {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.blog-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--olive);
}

.blog-item-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--olive-dark);
  margin-bottom: 12px;
  display: block;
}

.blog-item-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
  display: block;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
  margin-bottom: 40px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.page-link:hover {
  border-color: var(--olive);
  color: var(--olive);
  background: var(--sand);
}

.page-link.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--white);
}

.page-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}
