/* General page styling */
body {
    background-color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    line-height: 1.6;
    padding: 20px;
}

/* Headings */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #1E40AF;
}

/* H1 - Post Title */
h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    padding: 10px 0;
}

/* H2 and H3 Subheadings */
h2 {
    font-size: 1.8em;
    margin: 30px 0 15px;
    padding: 10px 0;
}

h3 {
    font-size: 1.4em;
    margin: 20px 0 10px;
    padding: 8px 0;
}

/* Body text */
p {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* Highlighted text */
.highlight {/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

/* Main container to scope all styles */
.edu-post {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

/* Main container to scope all styles */
.edu-post {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Typography */
.edu-post h1,
.edu-post h2,
.edu-post h3,
.edu-post h4 {
    font-family: 'Poppins', sans-serif;
    color: #1E40AF;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.edu-post h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #3B82F6;
    padding-bottom: 10px;
}

.edu-post h2 {
    font-size: 1.8rem;
}

.edu-post h3 {
    font-size: 1.5rem;
}

.edu-post p {
    margin-bottom: 1.2em;
}

/* Highlight important text */
.edu-post .highlight {
    color: #3B82F6;
    font-weight: 600;
}

/* Note box styling */
.edu-post .note-box {
    background-color: #E0F2FE;
    border-left: 4px solid #3B82F6;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.edu-post .note-box h4 {
    margin-top: 0;
    color: #1E40AF;
}

/* Resource links styling */
.edu-post .resource-links {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.edu-post .resource-links h3 {
    margin-top: 0;
}

.edu-post .resource-links ul {
    padding-left: 20px;
}

.edu-post .resource-links a {
    color: #3B82F6;
    text-decoration: none;
}

.edu-post .resource-links a:hover {
    text-decoration: underline;
}

/* Exercise section styling */
.edu-post .exercise-section {
    margin: 30px 0;
}

/* Responsive iframe */
.edu-post .pdf-container {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Conclusion section */
.edu-post .conclusion {
    background-color: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

/* Formula table styling */
.edu-post .formula-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.edu-post .formula-table th,
.edu-post .formula-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.edu-post .formula-table th {
    background-color: #1E40AF;
    color: white;
}

.edu-post .formula-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Image styling */
.edu-post .edu-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .edu-post h1 {
        font-size: 1.8rem;
    }
    
    .edu-post h2 {
        font-size: 1.5rem;
    }
    
    .edu-post .pdf-container {
        height: 400px;
    }
    
    .edu-post .formula-table {
        font-size: 0.9rem;
    }
}
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Typography */
.edu-post h1,
.edu-post h2,
.edu-post h3,
.edu-post h4 {
    font-family: 'Poppins', sans-serif;
    color: #1E40AF;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.edu-post h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #3B82F6;
    padding-bottom: 10px;
}

.edu-post h2 {
    font-size: 1.8rem;
}

.edu-post h3 {
    font-size: 1.5rem;
}

.edu-post p {
    margin-bottom: 1.2em;
}

/* Highlight important text */
.edu-post .highlight {
    color: #3B82F6;
    font-weight: 600;
}

/* Note box styling */
.edu-post .note-box {
    background-color: #E0F2FE;
    border-left: 4px solid #3B82F6;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.edu-post .note-box h4 {
    margin-top: 0;
    color: #1E40AF;
}

/* Resource links styling */
.edu-post .resource-links {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.edu-post .resource-links h3 {
    margin-top: 0;
}

.edu-post .resource-links ul {
    padding-left: 20px;
}

.edu-post .resource-links a {
    color: #3B82F6;
    text-decoration: none;
}

.edu-post .resource-links a:hover {
    text-decoration: underline;
}

/* Exercise section styling */
.edu-post .exercise-section {
    margin: 30px 0;
}

/* Responsive iframe */
.edu-post .pdf-container {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Conclusion section */
.edu-post .conclusion {
    background-color: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

/* Formula table styling */
.edu-post .formula-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.edu-post .formula-table th,/* ✅ Apply style only inside .edu-post container */
.edu-post {
  font-family: "Poppins", Arial, sans-serif;
  color: #0f1724;
  line-height: 1.7;
  max-width: 900px;
  margin: 30px auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ---------- Headings ---------- */
.edu-post h1, 
.edu-post h2, 
.edu-post h3 {
  color: #0b5f8a;
  margin-top: 1rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.edu-post h1 {
  text-align: center;
  font-size: 28px;
}

.edu-post h2 {
  font-size: 22px;
  border-bottom: 2px solid #0b5f8a;
  display: inline-block;
  padding-bottom: 4px;
}

/* ---------- Meta Info ---------- */
.edu-post .meta-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-post .meta-info a {
  color: #0b5f8a;
  text-decoration: none;
}
.edu-post .meta-info a:hover {
  text-decoration: underline;
}

/* ---------- Featured Image ---------- */
.edu-post .featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  display: block;
}

/* ---------- iFrame (PDF Preview) ---------- */
.edu-post iframe {
  border-radius: 8px;
  margin: 1rem 0;
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* ---------- Resource Links ---------- */
.edu-post .resource-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edu-post .resource-links li {
  margin: 6px 0;
}

.edu-post .resource-links a {
  color: #0b5f8a;
  text-decoration: none;
  font-weight: 600;
}

.edu-post .resource-links a:hover {
  text-decoration: underline;
}

/* ---------- Highlight / Callout ---------- */
.edu-post .callout {
  background: #f0f9ff;
  border-left: 4px solid #0b5f8a;
  padding: 1rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  font-size: 15px;
}

/* ---------- SEO Description ---------- */
.edu-post .seo-desc {
  font-size: 14px;
  color: #555;
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* ---------- Responsive Fix ---------- */
@media (max-width: 768px) {
  .edu-post {
    padding: 15px;
  }

  .edu-post iframe {
    height: 400px;
  }

  .edu-post h1 {
    font-size: 22px;
  }

  .edu-post h2 {
    font-size: 18px;
  }
}

.edu-post .formula-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.edu-post .formula-table th {
    background-color: #1E40AF;
    color: white;/* ✅ Apply style only inside .edu-post container */
.edu-post {
  font-family: "Poppins", Arial, sans-serif;
  color: #0f1724;
  line-height: 1.7;
  max-width: 900px;
  margin: 30px auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ---------- Headings ---------- */
.edu-post h1, 
.edu-post h2, 
.edu-post h3 {
  color: #0b5f8a;
  margin-top: 1rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.edu-post h1 {
  text-align: center;
  font-size: 28px;
}

.edu-post h2 {
  font-size: 22px;
  border-bottom: 2px solid #0b5f8a;
  display: inline-block;
  padding-bottom: 4px;
}

/* ---------- Meta Info ---------- */
.edu-post .meta-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-post .meta-info a {
  color: #0b5f8a;
  text-decoration: none;
}
.edu-post .meta-info a:hover {
  text-decoration: underline;
}

/* ---------- Featured Image ---------- */
.edu-post .featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  display: block;
}

/* ---------- iFrame (PDF Preview) ---------- */
.edu-post iframe {
  border-radius: 8px;
  margin: 1rem 0;
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* ---------- Resource Links ---------- */
.edu-post .resource-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edu-post .resource-links li {
  margin: 6px 0;
}

.edu-post .resource-links a {
  color: #0b5f8a;
  text-decoration: none;
  font-weight: 600;
}

.edu-post .resource-links a:hover {
  text-decoration: underline;
}

/* ---------- Highlight / Callout ---------- */
.edu-post .callout {
  background: #f0f9ff;
  border-left: 4px solid #0b5f8a;
  padding: 1rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  font-size: 15px;
}

/* ---------- SEO Description ---------- */
.edu-post .seo-desc {
  font-size: 14px;
  color: #555;
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* ---------- Responsive Fix ---------- */
@media (max-width: 768px) {
  .edu-post {
    padding: 15px;
  }

  .edu-post iframe {
    height: 400px;
  }

  .edu-post h1 {
    font-size: 22px;
  }

  .edu-post h2 {
    font-size: 18px;
  }
}

}

.edu-post .formula-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Image styling */
.edu-post .edu-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .edu-post h1 {
        font-size: 1.8rem;
    }
    
    .edu-post h2 {
        font-size: 1.5rem;
    }
    
    .edu-post .pdf-container {
        height: 400px;
    }
    
    .edu-post .formula-table {
        font-size: 0.9rem;
    }
}
    color: #3B82F6;
    font-weight: bold;
}

/* Note box */
.note-box {
    background-color: #E0F2FE;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Conclusion section */
.conclusion {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Ensure smooth spacing and rounded corners */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    h3 {
        font-size: 1.2em;
    }
    .container {
        padding: 10px;
    }
}

/* Font imports for WordPress compatibility */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Open+Sans:wght@400;600&display=swap');/*
  education-post-layout.css
  Clean, readable post layout for an education website.
  Usage: link this file in your post template head:
  <link rel="stylesheet" href="/css/education-post-layout.css">

  Customize: change --brand, --accent, and type scale below.
*/

:root{
  --max-width: 900px;            /* readable measure for long text */
  --sidebar-width: 300px;
  --gap: 1.25rem;
  --brand: #0b5f8a;             /* main brand color (blue) */
  --accent: #f29e4c;           /* accent (orange) */
  --muted: #6b7280;            /* grey for metadata */
  --bg: #ffffff;
  --surface: #fbfbfc;
  --text: #0f1724;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(12,20,30,0.06);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Reset useful box sizing */
*,*::before,*::after{box-sizing:border-box}

/* Page-level wrapper (use inside your single-post template) */
.post-wrapper{
  display:flex;
  gap:var(--gap);
  justify-content:center;
  padding:2rem 1rem;
  background:linear-gradient(180deg, var(--surface), var(--bg));
}

.post-main{
  width:100%;
  max-width:var(--max-width);
  background:var(--bg);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.post-grid{
  display:grid;
  grid-template-columns: 1fr; /* mobile-first */
  gap:1.25rem;
  padding:1.5rem;
}

/* Header / title area */
.post-header{
  padding-bottom:0.5rem;
  border-bottom:1px solid #eef2f6;
}

.post-title{
  font-family:var(--sans);
  font-size:1.75rem;
  line-height:1.1;
  margin:0 0 0.35rem 0;
  color:var(--text);
}

.post-meta{
  display:flex;
  gap:0.75rem;
  align-items:center;
  font-size:0.9rem;
  color:var(--muted);
}

.post-meta .author{
  display:inline-flex;
  gap:0.5rem;
  align-items:center;
}

.avatar{
  width:36px;height:36px;border-radius:50%;overflow:hidden;border:2px solid #fff;box-shadow:0 1px 3px rgba(2,6,23,0.06);
}

.featured-image{
  width:100%;
  height:320px;
  object-fit:cover;
  border-radius:8px;
  margin:0.8rem 0;
  background:#e9eef3; /* placeholder color */
}

/* Content typography */
.post-content{
  font-family:var(--sans);
  color:var(--text);
  line-height:1.75;
  font-size:1rem;
}

.post-content p{margin:0 0 1rem 0}
.post-content h2{font-size:1.25rem;margin:1.1rem 0 0.5rem 0}
.post-content h3{font-size:1.05rem;margin:0.9rem 0 0.4rem 0}
.post-content ul, .post-content ol{margin:0 0 1rem 1.25rem}
.post-content blockquote{
  padding:0.8rem 1rem;margin:1rem 0;border-left:4px solid var(--brand);background:#fbfcfd;border-radius:6px;color:var(--muted)
}

/* Code & formula blocks (important for education sites) */
.post-content pre{padding:1rem;border-radius:8px;background:#0f1724;color:#fff;overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,monospace}
.post-content code{background:#f6f8fa;padding:0.15rem 0.35rem;border-radius:4px;font-family:ui-monospace,monospace}

/* Callout box for key concepts / tips */
.callout{
  border-radius:8px;padding:0.9rem;margin:1rem 0;background:linear-gradient(90deg, rgba(11,95,138,0.05), rgba(242,158,76,0.03));border-left:4px solid var(--accent);
}

/* Sidebar (resources, downloads, quick links) */
.post-aside{
  display:none; /* hidden mobile */
}

.sidebar-card{padding:1rem;border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}
.sidebar-card h4{margin:0 0 0.5rem 0}
.sidebar-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0.5rem}
.sidebar-list a{display:block;padding:0.4rem;border-radius:6px;text-decoration:none;font-size:0.95rem}

/* Footer / navigation */
.post-footer{border-top:1px solid #eef2f6;padding-top:1rem;margin-top:1rem;display:flex;justify-content:space-between;gap:1rem;align-items:center}

.btn{display:inline-block;padding:0.5rem 0.85rem;border-radius:8px;text-decoration:none;font-weight:600}
.btn-primary{background:var(--brand);color:#fff}
.btn-outline{border:1px solid #e6eef6;color:var(--brand);background:transparent}

/* Responsive layout: show sidebar on larger screens */
@media (min-width:980px){
  .post-grid{grid-template-columns: 1fr var(--sidebar-width);align-items:start}
  .post-aside{display:block}
}

/* Accessibility helpers */
:focus{outline:3px solid rgba(11,95,138,0.12);outline-offset:3px}

/* Small tweaks for print */
@media print{
  .post-wrapper, .post-main{box-shadow:none;background:#fff}
  .post-aside{display:none}
  .featured-image{height:auto}
}

/* Example utility classes you may reuse */
.kv{display:flex;gap:0.5rem;align-items:center}
.small-muted{font-size:0.85rem;color:var(--muted)}
.center{display:flex;justify-content:center}
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

/* Main container to scope all styles */
.edu-post {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Typography */
.edu-post h1,
.edu-post h2,
.edu-post h3,
.edu-post h4 {
    font-family: 'Poppins', sans-serif;
    color: #1E40AF;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.edu-post h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid #3B82F6;
    padding-bottom: 10px;
}

.edu-post h2 {
    font-size: 1.8rem;
}

.edu-post h3 {
    font-size: 1.5rem;
}

.edu-post p {
    margin-bottom: 1.2em;
}

/* Highlight important text */
.edu-post .highlight {
    color: #3B82F6;
    font-weight: 600;
}

/* Note box styling */
.edu-post .note-box {
    background-color: #E0F2FE;
    border-left: 4px solid #3B82F6;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.edu-post .note-box h4 {
    margin-top: 0;
    color: #1E40AF;
}

/* Resource links styling */
.edu-post .resource-links {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.edu-post .resource-links h3 {
    margin-top: 0;
}

.edu-post .resource-links ul {
    padding-left: 20px;
}

.edu-post .resource-links a {
    color: #3B82F6;
    text-decoration: none;
}

.edu-post .resource-links a:hover {
    text-decoration: underline;
}

/* Exercise section styling */
.edu-post .exercise-section {
    margin: 30px 0;
}

/* Responsive iframe */
.edu-post .pdf-container {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Conclusion section */
.edu-post .conclusion {
    background-color: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

/* Formula table styling */
.edu-post .formula-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.edu-post .formula-table th,
.edu-post .formula-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.edu-post .formula-table th {
    background-color: #1E40AF;
    color: white;
}

.edu-post .formula-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Image styling */
.edu-post .edu-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .edu-post h1 {
        font-size: 1.8rem;
    }
    
    .edu-post h2 {
        font-size: 1.5rem;
    }
    
    .edu-post h3 {
        font-size: 1.2rem;
    }
    
    .edu-post .pdf-container {
        height: 400px;
    }
    
    .edu-post .formula-table {
        font-size: 0.9rem;
    }
}/* Apply style only inside .edu-post container */
.edu-post {
  font-family: "Poppins", Arial, sans-serif;
  color: #0f1724;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.edu-post h1, 
.edu-post h2, 
.edu-post h3 {
  color: #0b5f8a;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.edu-post .meta-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.edu-post .featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.edu-post iframe {
  border-radius: 8px;
  margin: 1rem 0;
  width: 100%;
}

.edu-post .resource-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edu-post .resource-links li {
  margin: 6px 0;
}

.edu-post .resource-links a {
  color: #0b5f8a;
  text-decoration: none;
  font-weight: 600;
}

.edu-post .resource-links a:hover {
  text-decoration: underline;
}

.edu-post .callout {
  background: #f0f9ff;
  border-left: 4px solid #0b5f8a;
  padding: 1rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  font-size: 15px;
}

.edu-post .seo-desc {
  font-size: 14px;
  color: #555;
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .edu-post {
    padding: 15px;
  }
  .edu-post iframe {
    height: 400px;
  }
}
