/* General Page Header (if not already in a global stylesheet) */
.page-header {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--accent-color, #e8f5e9); /* Using accent color from about.html */
    margin-bottom: 2rem;
    border-radius: 8px;
}

.page-header h1 {
    color: var(--primary-color, #004d40);
    margin-bottom: 0.5rem;
    font-size: 2.8rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-color, #333);
}

/* Blog List Styles */
.blog-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.blog-item-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-item-content {
    padding: 1.5rem;
}

.blog-item-content h2 {
    font-size: 1.75rem;
    color: var(--primary-color, #004d40);
    margin-bottom: 0.5rem;
}

.blog-item-content h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-item-content h2 a:hover {
    color: var(--secondary-color, #80cbc4);
}

.blog-item-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-item-excerpt {
    font-size: 1rem;
    color: var(--text-color, #333);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color, #004d40);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #00382c; /* Darker shade of primary */
}

.read-more-btn span {
    margin-left: 0.5rem;
}

/* Responsive adjustments for blog list */
@media (min-width: 768px) {
    .blog-post-item {
        flex-direction: row;
    }
    .blog-item-thumbnail {
        width: 300px; /* Fixed width for thumbnail on larger screens */
        height: auto; /* Adjust height automatically */
        min-height: 220px;
    }
    .blog-item-content {
        padding: 1.5rem 2rem;
        flex: 1;
    }
}

@media (min-width: 992px) {
    .blog-list {
        grid-template-columns: 1fr; /* Single column for a cleaner look, or use 'repeat(auto-fill, minmax(400px, 1fr))' for cards */
    }
}

/* Individual Blog Post Styles (Basic) */
.blog-post-full header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.blog-post-full .post-title {
    font-size: 2.5rem;
    color: var(--primary-color, #004d40);
    margin-bottom: 0.75rem;
}

.blog-post-full .post-meta {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.blog-post-full .post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-post-full .post-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color, #004d40);
}
.blog-post-full .post-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color, #004d40);
}

.blog-post-full .post-content p {
    margin-bottom: 1.25rem;
}

.blog-post-full .post-content ul,
.blog-post-full .post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-post-full .post-content blockquote {
    border-left: 5px solid var(--primary-color, #004d40); /* Thicker, primary color border */
    padding: 1rem 1.5rem; /* More padding */
    margin: 2rem 0; /* More vertical margin */
    font-style: italic;
    color: #444; /* Slightly darker text */
    background-color: #f9f9f9; /* Light background for emphasis */
    border-radius: 0 4px 4px 0; /* Rounded corners on the right */
}

.blog-post-full .post-content blockquote p {
    margin-bottom: 0; /* Remove bottom margin for p inside blockquote */
    font-size: 1.05rem; /* Slightly adjusted font size */
}

.blog-post-full .post-image-full {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 2rem auto; /* Centered and with bottom margin */
    display: block;
    object-fit: cover; /* Ensure image covers the area well */
    max-height: 400px; /* Optional: constrain image height */
}

/* Added styles for overall blog page and post enhancements */

/* Apply a background to the body and use a common font */
body.blog-page-body {
    background-color: var(--background-color, #f5f5f5); /* Light gray background for the page */
    font-family: 'Inter', sans-serif; /* Ensure Inter font is loaded */
    color: var(--text-color, #333);
    line-height: 1.6;
}

.container {
    max-width: 960px; /* Adjust as needed */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Blog Post Specific Styles */
.blog-post-full {
    background-color: #fff; /* White background for the article card */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Softer shadow */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.blog-post-full header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee; /* Separator line */
    padding-bottom: 1.5rem;
}

.blog-post-full .post-title {
    font-size: 2.5rem;
    color: var(--primary-color, #004d40);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-post-full .post-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

.blog-post-full .post-meta time {
    font-weight: 500;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color, #333);
}

.post-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color, #004d40);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-color, #80cbc4); /* Accent line under h2 */
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color, #004d40);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 0.75rem;
}

.post-content ul {
    list-style-type: disc;
}
.post-content ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content a {
    color: var(--primary-color, #00695c);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--secondary-color, #b2dfdb);
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.post-content a:hover,
.post-content a:focus {
    color: var(--secondary-color, #004d40);
    border-bottom-color: var(--primary-color, #004d40);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-post-full {
        padding: 1.5rem;
    }

    .blog-post-full .post-title {
        font-size: 2rem;
    }

    .post-content h2 {
        font-size: 1.6rem;
    }
    .post-content h3 {
        font-size: 1.3rem;
    }

    .post-content {
        font-size: 1rem;
    }
}

/* Footer styling */
body > footer {
    background-color: var(--primary-color, #004d40);
    color: #e0f2f1;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 3rem;
}

body > footer p {
    margin: 0;
    font-size: 0.9rem;
}

body > footer a {
    color: #fff;
    text-decoration: underline;
}

body > footer a:hover {
    text-decoration: none;
}

/* Add space for the fixed/absolute navigation bar */
main.container {
  margin-top: 150px; /* Adjust this value based on the actual height of your navbar + any desired spacing. Increased from 100px. */
}

/* Add this to ensure article headers don't inherit nav styling */
article header {
    position: static !important;
    background: none !important;
    box-shadow: none !important;
    width: auto !important;
}

/* Collapsible FAQ Styles */
.faq-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 12px;
}

.faq-section h2 {
    color: #004d40;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    cursor: pointer;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f9ff;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a202c;
    font-weight: 600;
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #004d40;
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    background-color: #00382c;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

/* Ensure FAQ section is responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .faq-section h2 {
        font-size: 1.75rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }
} 