/* 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;
    }
}