:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-color: #333;
    --light-text: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--primary-color);
}

.header-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.header-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* Navigation */
nav {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    padding: 15px 0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 15px 10px;
    display: inline-block;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Research */
.research-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.research-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.research-content {
    padding: 25px;
}

.research-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.research-text {
    color: #666;
    margin-bottom: 20px;
}

/* Publications */
.publications-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.pub-item {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pub-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.pub-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.pub-links {
    margin-top: 15px;
}

.pub-links a {
    display: inline-block;
    margin-right: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.pub-links a:hover {
    color: var(--accent-color);
}

.pub-links i {
    margin-right: 5px;
}

/* Blog Posts */
.blog-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blog-post-content {
    padding: 25px;
}

.blog-post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-post-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-post-excerpt {
    color: #333;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
}

.read-more:hover {
    color: var(--accent-color);
}

.blog-all-posts {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.all-posts-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.all-posts-button:hover {
    background-color: var(--accent-color);
}

/* Contact */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.contact-text {
    font-size: 0.95rem;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: var(--accent-color);
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project-img {
    height: 200px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.project-text {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-features {
    margin-bottom: 20px;
    padding-left: 20px;
}

.project-features li {
    margin-bottom: 8px;
    padding-left: 5px;
    position: relative;
    list-style-type: none;
}

.project-features li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--primary-color);
    font-weight: bold;
}

.project-links {
    margin-top: auto;
}

.project-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.project-btn:hover {
    background-color: #2980b9;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: #e0e0e0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.tab-btn:first-child {
    border-radius: 5px 0 0 5px;
}

.tab-btn:last-child {
    border-radius: 0 5px 5px 0;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blog-img {
    height: 200px;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 25px;
}

/* Blog date, title, tags, and tag styling moved to the end of the file */

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.read-more::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.read-more:hover::after {
    transform: scaleX(1);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
}

.categories-list, .recent-posts-list {
    list-style: none;
}

.categories-list li, .recent-posts-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child, .recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-list a, .recent-posts-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
}

.categories-list a:hover, .recent-posts-list a:hover {
    color: var(--primary-color);
}

.category-count {
    background-color: #eee;
    color: #666;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.search-form {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #2980b9;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-link {
    background-color: #e0e0e0;
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.tag-cloud-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Blog Post */
.blog-post {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 60px 0;
}

/* Post header, date, title, tags, and tag styling moved to the end of file */

.post-featured-img {
    width: 100%;
    height: auto; /* Changed from fixed 400px to auto to adapt to image's natural height */
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 40px 0 20px;
}

.post-content h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    font-style: italic;
    color: #555;
    margin: 30px 0;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 30px 0;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
}

.post-content a:hover {
    border-bottom: 1px solid var(--primary-color);
}

/* Author Section */
.author-section {
    display: flex;
    align-items: center;
    padding: 30px;
    background-color: #f0f5fa;
    border-radius: 8px;
    margin-top: 50px;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 30px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.author-bio {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.author-links a {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-post {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.related-post-img {
    height: 150px;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.related-post-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3; /* Standard property for better compatibility */
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.page-link {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

/* Delay each item by 0.2s */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-bottom: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
    }
    
    .research-container,
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .blog-post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .author-section {
        flex-direction: column;
        text-align: center;
    }
    
    .author-img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .related-posts-list {
        grid-template-columns: 1fr;
    }

    /* Make content cards wider on mobile */
    .blog-posts-container,
    .blog-posts,
    .projects-container,
    .publications-container {
        max-width: 90%;
        width: 90%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .container {
        max-width: 90%;
        width: 90%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Project Full Details Styling */
.project-full-details {
    display: none;
    width: 100%;
    padding: 20px;
    margin-top: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-top: 3px solid var(--primary-color);
}

.project-detail-content {
    font-size: 1rem;
    line-height: 1.6;
}

.project-detail-content h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 20px 0 15px;
}

.project-detail-content h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 15px 0 10px;
}


/* Improve blog post header styling */
.post-header {
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 30px;
    border-radius: 8px;
    color: white;
}

/* Fix date visibility */
.post-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
}

/* Improve title contrast */
.post-title {
    font-size: 2.4rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Fix tag spacing and appearance */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.post-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

/* You may also want to update the blog card styling for consistency */
.blog-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.blog-date {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog-tag {
    background-color: #e0e0e0;
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}




/* Blog page header */
.blog-header {
    margin-bottom: 50px;
    text-align: center;
}

.blog-page-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.blog-page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Improved blog layout */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Featured post styles */
.featured-post {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    position: relative;
}

.featured-post-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1;
}

.featured-post-img {
    height: 350px;
    background-size: cover;
    background-position: center;
}

.featured-post-content {
    padding: 30px;
}

.featured-post-date {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.featured-post-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.featured-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.featured-post-tag {
    background-color: #e0e0e0;
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.featured-post-excerpt {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.featured-post-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.featured-post-btn:hover {
    background-color: #2980b9;
}

/* Grid layout for regular posts */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Author widget */
.author-widget {
    text-align: center;
    padding: 30px 25px;
}

.author-widget-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.author-widget-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.author-widget-bio {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.author-widget-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.author-widget-links a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.author-widget-links a:hover {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-top: 40px;
    }
    
    .featured-post-img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post-content {
        padding: 20px;
    }
    
    .featured-post-title {
        font-size: 1.5rem;
    }
}

/* Navigation group styling */
.nav-separator {
    margin: 0 5px;
    color: #ddd;
    align-self: center;
}

.internal-link {
    /* Styling for internal section links */
    color: var(--secondary-color);
}

.external-link {
    /* Styling for external page links */
    color: var(--primary-color);
    font-weight: 600; /* Make slightly bolder */
}

/* Optional: Add subtle icons to external links */
.external-link::after {
    content: '›';
    margin-left: 3px;
    font-size: 1.2em;
    line-height: 1;
}

/* Search Page Styles */
.search-page {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.search-highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.search-form-container {
    max-width: 600px;
    margin: 30px 0;
}

.search-results {
    margin-top: 30px;
}

.search-result {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.search-result:last-child {
    border-bottom: none;
}

.search-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.search-tag {
    background-color: #e0e0e0;
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.search-excerpt {
    color: #333;
    margin-bottom: 15px;
}

.search-read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.search-read-more::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.search-read-more:hover::after {
    transform: scaleX(1);
}

/* Styling for tables in blog posts */
.post-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    display: block;
}

.post-content table thead {
    background-color: var(--secondary-color);
    color: white;
}

.post-content table th,
.post-content table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #dee2e6;
}

.post-content table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

.post-content table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Make tables scrollable on mobile */
@media (max-width: 768px) {
    .post-content table {
        white-space: nowrap;
    }
}

/* Math equations styling */
.MathJax {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

/* For display equations */
.post-content .MathJax_Display {
    margin: 1.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Special box styling for important equations */
.post-content .boxed-equation {
    padding: 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-content .boxed-equation .MathJax_Display {
    margin: 0.5rem 0;
}

/* Improved styling for inline math */
.post-content p .MathJax {
    vertical-align: middle;
}

/* Responsive styles for mathematics on smaller screens */
@media (max-width: 768px) {
    .post-content .MathJax_Display {
        font-size: 90%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .post-content .boxed-equation {
        padding: 1rem;
        margin: 1rem 0;
    }
}