/* Educational Content CSS Design */
/* 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 for educational content */
.edu-post {
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Headings */
.edu-post h1 {
    font-family: 'Poppins', sans-serif;
    color: #1E40AF;
    font-size: 2.2rem;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E0F2FE;
    font-weight: 700;
}

.edu-post h2 {
    font-family: 'Poppins', sans-serif;
    color: #1E40AF;
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E0F2FE;
    font-weight: 600;
}

.edu-post h3 {
    font-family: 'Poppins', sans-serif;
    color: #1E40AF;
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Paragraphs and text */
.edu-post p {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.edu-post .highlight {
    color: #3B82F6;
    font-weight: 600;
    background-color: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Note box */
.edu-post .note-box {
    background-color: #E0F2FE;
    border-left: 4px solid #3B82F6;
    padding: 18px 22px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.edu-post .note-box h4 {
    font-family: 'Poppins', sans-serif;
    color: #1E40AF;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Tables */
.edu-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.edu-post th {
    background-color: #1E40AF;
    color: white;
    font-family: 'Poppins', sans-serif;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
}

.edu-post td {
    padding: 12px 18px;
    border-bottom: 1px solid #E0F2FE;
}

.edu-post tr:nth-child(even) {
    background-color: #f8fafc;
}

.edu-post tr:hover {
    background-color: #E0F2FE;
    transition: background-color 0.3s ease;
}

/* Diagrams and figures */
.edu-post .diagram-container {
    background-color: #f8fafc;
    border: 1px solid #E0F2FE;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.edu-post .diagram-placeholder {
    background-color: #E0F2FE;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-bottom: 12px;
    color: #1E40AF;
    font-weight: 500;
}

.edu-post .diagram-caption {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

/* Lists */
.edu-post ul, .edu-post ol {
    margin: 15px 0;
    padding-left: 25px;
}

.edu-post li {
    margin-bottom: 8px;
}

.edu-post ul li::marker {
    color: #3B82F6;
}

.edu-post ol li::marker {
    color: #1E40AF;
    font-weight: 600;
}

/* Conclusion section */
.edu-post .conclusion {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    border-left: 4px solid #1E40AF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.edu-post .conclusion h3 {
    margin-top: 0;
    color: #1E40AF;
}

/* Call to action button */
.edu-post .call-to-action {
    display: inline-block;
    background-color: #3B82F6;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}

.edu-post .call-to-action:hover {
    background-color: #1E40AF;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(30, 64, 175, 0.4);
}

/* Code blocks */
.edu-post code {
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #1E40AF;
}

.edu-post pre {
    background-color: #f1f5f9;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 3px solid #3B82F6;
}

/* Blockquotes */
.edu-post blockquote {
    border-left: 4px solid #3B82F6;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    background-color: #f8fafc;
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
}

/* Images */
.edu-post img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Definition lists */
.edu-post dl {
    margin: 20px 0;
}

.edu-post dt {
    font-weight: 600;
    color: #1E40AF;
    margin-top: 15px;
}

.edu-post dd {
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Horizontal rule */
.edu-post hr {
    border: none;
    height: 1px;
    background-color: #E0F2FE;
    margin: 30px 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .edu-post {
        padding: 18px;
        margin: 10px;
    }
    
    .edu-post h1 {
        font-size: 1.8rem;
    }
    
    .edu-post h2 {
        font-size: 1.5rem;
    }
    
    .edu-post h3 {
        font-size: 1.2rem;
    }
    
    .edu-post table {
        font-size: 0.9rem;
    }
    
    .edu-post th, .edu-post td {
        padding: 10px 12px;
    }
    
    .edu-post .diagram-placeholder {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .edu-post {
        padding: 15px;
    }
    
    .edu-post h1 {
        font-size: 1.6rem;
    }
    
    .edu-post table {
        display: block;
        overflow-x: auto;
    }
}