/* 
Theme Name:       Custom Blog Professional
Theme URI:        http://childtheme-generator.com/
Description:      Professional 2-column blog layout with fixed sidebar
Author:           Ayush
Author URI:       http://childtheme-generator.com/
Template:         product-comparison-woocommerce
Version:          2.0.0
Text Domain:      custom-blog
*/

/* ===== Single Post Styling ===== */

/* Professional Blog Single Post Styles */

/* Professional Blog Single Post Styles */

/* Professional Blog Single Post Styles - Refined Version */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
  box-sizing: border-box;
}

/* Main container styling */
.custom-single-post {
  max-width: 1200px;
  width: 100%;
  margin: 40px auto;
  padding: 40px 60px;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  line-height: 1.6;
}

/* Responsive container */
@media (max-width: 1200px) {
  .custom-single-post {
    margin: 30px 20px;
    padding: 30px 40px;
  }
}

@media (max-width: 768px) {
  .custom-single-post {
    margin: 20px 15px;
    padding: 25px 20px;
    border-radius: 6px;
  }
}

/* Article wrapper */
.custom-single-post article {
  position: relative;
}

/* Main title styling */
.custom-single-post h1 {
  font-family: 'Inter', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
  text-align: left;
}

@media (max-width: 768px) {
  .custom-single-post h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .custom-single-post h1 {
    font-size: 1.8rem;
  }
}

/* Post meta information */
.custom-single-post article > p {
  color: #666;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0 0 30px 0;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

/* Featured image container - Reduced size */
.post-thumbnail {
  margin: 30px 0;
  text-align: left;
  position: relative;
  display:none !important;
}

.post-thumbnail img {
  max-width: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  object-fit: cover;
}

/* For very small images like 244x244 */
.post-thumbnail img[width="244"] {
  width: 244px !important;
  height: 244px !important;
  max-width: 244px;
}

.post-thumbnail:hover img {
  transform: scale(1.02);
}

/* Post content styling - Left aligned */
.post-content {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
  margin: 40px 0;
  text-align: left !important;
}

.post-content p {
  margin: 0 0 20px 0;
  text-align: left;
}

.post-content p:last-child {
  margin-bottom: 0;
}

/* Content typography */
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  margin: 35px 0 18px 0;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.post-content h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
}

.post-content h3 {
  font-size: 1.4rem;
}

.post-content h4 {
  font-size: 1.2rem;
}

/* Fixed Lists styling - Proper left alignment and bullet points */
.post-content ul {
  margin: 18px 0;
  padding-left: 0;
  list-style: none;
  text-align: left;
}

.post-content ul li {
  position: relative;
  margin: 10px 0;
  padding-left: 20px;
  line-height: 1.6;
  text-align: left;
}

.post-content ul li::before {
  content: "•";
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.post-content ol {
  margin: 18px 0;
  padding-left: 20px;
  list-style-type: decimal;
  text-align: left;
}

.post-content ol li {
  margin: 10px 0;
  line-height: 1.6;
  text-align: left;
  padding-left: 5px;
}

/* Nested lists */
.post-content ul ul {
  margin: 8px 0;
  padding-left: 20px;
}

.post-content ul ul li::before {
  content: "◦";
  color: #6b7280;
}

.post-content ul ul ul li::before {
  content: "▪";
  color: #9ca3af;
}

/* Blockquotes */
.post-content blockquote {
  margin: 25px 0;
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 4px solid #3b82f6;
  border-radius: 6px;
  font-style: italic;
  position: relative;
  text-align: left;
}

.post-content blockquote::before {
  content: '"';
  font-size: 3rem;
  color: #3b82f6;
  position: absolute;
  top: -5px;
  left: 15px;
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* Code blocks */
.post-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9em;
  color: #e11d48;
}

.post-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 18px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 20px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Links */
.post-content a {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.post-content a:hover {
  color: #1d4ed8;
  border-bottom-color: #3b82f6;
}

/* Images in content */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 20px 0;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.post-content table th,
.post-content table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.post-content table th {
  background: #f8fafc;
  font-weight: 600;
  color: #374151;
}

.post-content table tr:hover {
  background: #f9fafb;
}

/* Tags section */
.post-tags {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  text-align: left;
}

.post-tags strong {
  color: #374151;
  font-weight: 600;
  margin-right: 10px;
}

.post-tags a {
  display: inline-block;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #475569;
  padding: 6px 12px;
  margin: 4px 8px 4px 0;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.post-tags a:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

/* Responsive improvements */
@media (max-width: 480px) {
  .custom-single-post {
    margin: 10px;
    padding: 20px 15px;
  }
  
  .custom-single-post h1 {
    font-size: 1.6rem;
  }
  
  .post-content {
    font-size: 1rem;
  }
  
  .post-content h2 {
    font-size: 1.4rem;
  }
  
  .post-content h3 {
    font-size: 1.2rem;
  }
  
  .post-content ul li {
    padding-left: 18px;
  }
  
  .post-thumbnail img {
    max-width: 100%;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .post-thumbnail img,
  .post-tags a {
    transition: none;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .custom-single-post {
    background: #1f2937;
    color: #f9fafb;
  }
  
  .custom-single-post h1 {
    color: #f9fafb;
  }
  
  .post-content {
    color: #e5e7eb;
  }
  
  .post-content h2,
  .post-content h3,
  .post-content h4 {
    color: #f9fafb;
  }
  
  .post-content blockquote {
    background: #374151;
  }
}

/* Print styles */
@media print {
  .custom-single-post {
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  
  .post-thumbnail,
  .post-tags {
    break-inside: avoid;
  }
}
.post-navigation a {
  display: inline-block;
  padding: 10px 16px;
  background-color: #facc15; /* Tailwind yellow-400 */
  color: #1a202c; /* Tailwind gray-900 */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.post-navigation a:hover {
  background-color: #eab308; /* Tailwind yellow-500 */
}