/* === Education Post Styling === */
.edu-post {
  /* Base Styles */
  background-color: #ffffff;
  color: #333333;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.edu-post * {
  box-sizing: border-box;
}

/* Typography */
.edu-post h1,
.edu-post h2,
.edu-post h3,
.edu-post h4,
.edu-post h5,
.edu-post h6 {
  font-family: 'Poppins', sans-serif;
  color: #1E40AF;
  margin: 1.5em 0 0.8em 0;
  font-weight: 600;
  line-height: 1.3;
}

.edu-post h1 {
  font-size: 2.2rem;
  margin-top: 0;
  border-bottom: 2px solid #1E40AF;
  padding-bottom: 0.5em;
}

.edu-post h2 {
  font-size: 1.8rem;
  border-left: 4px solid #1E40AF;
  padding-left: 15px;
}

.edu-post h3 {
  font-size: 1.4rem;
  color: #3B82F6;
}

/* Paragraphs and Text */
.edu-post p {
  margin-bottom: 1.2em;
  font-size: 1rem;
}

.edu-post .intro {
  font-size: 1.1rem;
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3B82F6;
  margin: 1.5em 0;
}

/* Highlight Important Text */
.edu-post .highlight,
.edu-post strong.important,
.edu-post em.important {
  color: #3B82F6;
  font-weight: 600;
  background-color: rgba(59, 130, 246, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Notes Box */
.edu-post .note-box {
  background-color: #E0F2FE;
  border: 1px solid #3B82F6;
  border-radius: 8px;
  padding: 20px;
  margin: 2em 0;
  position: relative;
}

.edu-post .note-box::before {
  content: "📝 Note";
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #1E40AF;
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-bottom: 1px solid #3B82F6;
  padding-bottom: 8px;
}

/* Lists */
.edu-post ul,
.edu-post ol {
  margin: 1.5em 0;
  padding-left: 2em;
}

.edu-post li {
  margin-bottom: 0.8em;
  padding-left: 0.5em;
}

.edu-post ul li::marker {
  color: #3B82F6;
}

.edu-post ol li::marker {
  color: #1E40AF;
  font-weight: 600;
}

/* Conclusion Section */
.edu-post .conclusion {
  background-color: #f0f9ff;
  border: 1px solid #1E40AF;
  border-radius: 10px;
  padding: 25px;
  margin: 2.5em 0 1em 0;
  text-align: center;
}

.edu-post .conclusion h2 {
  border: none;
  color: #1E40AF;
  text-align: center;
  padding-left: 0;
}

.edu-post .conclusion p {
  font-size: 1.05rem;
}

/* Call to Action Button */
.edu-post .cta-button {
  display: inline-block;
  background-color: #1E40AF;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.edu-post .cta-button:hover {
  background-color: #3B82F6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Code Blocks (for programming subjects) */
.edu-post pre,
.edu-post code {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 15px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 1.5em 0;
}

.edu-post code {
  padding: 2px 6px;
  margin: 0 2px;
}

/* Tables (for data subjects) */
.edu-post table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edu-post th {
  background-color: #1E40AF;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}

.edu-post td {
  padding: 10px 15px;
  border-bottom: 1px solid #e2e8f0;
}

.edu-post tr:nth-child(even) {
  background-color: #f8fafc;
}

.edu-post tr:hover {
  background-color: #E0F2FE;
}

/* Images and Media */
.edu-post img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Blockquotes */
.edu-post blockquote {
  border-left: 4px solid #3B82F6;
  background-color: #f8fafc;
  padding: 20px;
  margin: 1.5em 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .edu-post {
    padding: 0 10px;
  }
  
  .edu-post h1 {
    font-size: 1.8rem;
  }
  
  .edu-post h2 {
    font-size: 1.5rem;
  }
  
  .edu-post h3 {
    font-size: 1.2rem;
  }
  
  .edu-post .intro,
  .edu-post .note-box,
  .edu-post .conclusion {
    padding: 15px;
    margin: 1.2em 0;
  }
  
  .edu-post table {
    font-size: 0.9rem;
  }
  
  .edu-post th,
  .edu-post td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .edu-post h1 {
    font-size: 1.6rem;
  }
  
  .edu-post h2 {
    font-size: 1.3rem;
  }
  
  .edu-post ul,
  .edu-post ol {
    padding-left: 1.5em;
  }
}

/* Utility Classes */
.edu-post .text-center {
  text-align: center;
}

.edu-post .text-right {
  text-align: right;
}

.edu-post .mb-0 {
  margin-bottom: 0;
}

.edu-post .mt-0 {
  margin-top: 0;
}

/* Print Styles */
@media print {
  .edu-post {
    background-color: white;
    color: black;
  }
  
  .edu-post .cta-button {
    display: none;
  }
  
  .edu-post .note-box,
  .edu-post .conclusion {
    border: 1px solid #333;
  }
}