body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Layout */

.container {
    max-width: 940px;
    margin: 0 auto;
    padding: 50px 24px;
}

.site-title img {
    height: 60px;
    width: auto;
    display: block;
}

.site-title a {
    text-decoration: none;
}

/* Header */

.site-header {
    border-bottom: 1px solid #eee;
}

.site-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.2px;         /* ✅ Subtle modern polish */
}

/* Content Headings */

.site-content h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.site-content h3 {
    font-size: 16px;
    color: #666;
    margin-top: 4px;
    margin-bottom: 22px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

/* Paragraphs */
.site-content {
    padding-top: 10px;
}
.site-content p {
    max-width: 760px;
    color: #333;
    margin: 10px 0;
}

/* Divider */

.site-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

/* Footer */

.site-footer {
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

/* Header Layout */

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

/* Navigation */

.site-nav a {
    margin-left: 22px;              /* ✅ Slightly improved spacing */
    text-decoration: none;
    color: #444;
    font-size: 14px;
    position: relative;             /* ✅ Enables smoother effects */
}

.site-nav a:hover {
    color: #000;
}

/* Active Menu */

.site-nav a.active {
    color: #000;
    font-weight: 600;
}

.site-nav a.active::after {         /* ✅ Cleaner underline effect */
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #000;
}
.tagline {
    font-size: 16px;
    color: #666;
    margin-top: 6px;
    margin-bottom: 28px;
    letter-spacing: -0.2px;
}
/* Mobile First Navigation */

.site-nav {
    display: none !important;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
}

.site-nav a {
    margin: 10px 0;
}

/* Toggle Button */

.nav-toggle {
    display: block;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

/* When menu opened */

.site-nav.active {
    display: flex !important;
}

/* Desktop Layout */

@media (min-width: 769px) {

    .site-nav {
        display: flex !important;
        flex-direction: row;
        margin-top: 0;
        width: auto;
    }

    .site-nav a {
        margin-left: 22px;
    }

    .nav-toggle {
        display: none;
    }

    .header-flex {
        flex-direction: row;
        align-items: center;
    }
}

/* Insights */
.insight-article h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.insight-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 30px;
}

.insight-content {
    line-height: 1.7;
    font-size: 15px;
}

.insight-content h2 {
    font-size: 20px;
    margin-top: 35px;
}

.tag {
    color: #555;
}

.insight-summary {
    margin-bottom: 35px;
}

.insight-summary h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.insight-summary a {
    text-decoration: none;
    color: #222;
}

.insight-summary a:hover {
    text-decoration: underline;
}

.insights-intro {
    margin-bottom: 40px;
    color: #666;
}

.read-more {
    display: inline-block;
    margin-left: 5px;
    font-weight: bold;
    color: #007bff; /* Or your brand color */
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Add space between tags */
.tag {
    margin-right: 8px;
    padding: 2px 8px;
    background-color: #f0f0f0; /* Light grey background */
    border-radius: 4px;        /* Rounded corners */
    font-size: 0.9em;
    display: inline-block;
}

.tag-results h1 {
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.insight-summary {
    margin-bottom: 3rem; /* Space between the listed articles */
}

.tag-results h1 {
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.insight-summary {
    margin-bottom: 3rem; /* Space between the listed articles */
}

.insight-meta a.tag {
    text-decoration: none; /* Removes the underline */
    color: inherit;        /* Keeps the text color the same as the meta text */
    transition: color 0.2s;
}

.insight-meta a.tag:hover {
    color: #007bff;        /* Changes color only when the user hovers */
    text-decoration: underline;
}

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.pagination a {
    text-decoration: none;
    color: #444;
}

.pagination a:hover {
    color: #000;
}

/* --- Navigation Bar Visual Upgrade --- */

/* 1. Base Navigation Link Style */
.site-nav a {
    padding: 8px 16px; /* Increased padding for a better click area */
    border-radius: 6px; /* Soft rounded corners for a modern feel */
    font-size: 15px; /* Slightly larger, more readable font */
    font-weight: 500; /* Medium font weight for clarity */
    color: #333; /* Darker text for better contrast */
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; /* Smooth transition for hover effects */
    margin-left: 8px; /* Adjust margin to work with new padding */
}

/* 2. Subtle Hover Effect */
.site-nav a:hover {
    background-color: #f0f0f0; /* A very light gray background on hover */
    color: #000; /* Darken text on hover for emphasis */
}

/* 3. Refined Active State */
.site-nav a.active {
    background-color: #e8e8e8; /* A slightly darker background for the active link */
    color: #000;
    font-weight: 600; /* Bolder font to indicate the current page */
}

/* This will remove the old underline effect for the active link. */
.site-nav a.active::after {
    display: none;
}

/* 4. Desktop Layout Adjustment */
@media (min-width: 769px) {
    /* Ensures consistent spacing on larger screens */
    .site-nav a {
        margin-left: 8px;
    }
}

/* --- Insight Listing Page Visual Upgrade --- */

/* 1. Card-based Layout for Insight Summaries */
.insight-summary {
    border: 1px solid #e0e0e0;      /* A lighter border */
    border-radius: 8px;                /* Softer, more modern rounded corners */
    padding: 24px;                     /* More internal spacing */
    margin-bottom: 2rem;               /* Keep the existing vertical spacing */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Subtle shadow for a "lifting" effect */
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out; /* Smooth transition */
}

/* 2. Hover Effect for Cards */
.insight-summary:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1); /* A more pronounced shadow on hover */
    transform: translateY(-3px);           /* A slight lift effect */
}

/* 3. Improved Typography within Cards */
.insight-summary h2 {
    font-size: 22px;        /* Larger title for better hierarchy */
    margin-top: 0;
}

.insight-summary h2 a {
    text-decoration: none; /* Remove underline from title */
}

.insight-summary .insight-meta {
    font-size: 14px; /* Slightly larger meta text */
    margin-bottom: 16px;
}

.insight-summary p {
    font-size: 16px; /* Larger paragraph text for readability */
    color: #444;    /* Slightly lighter text color for the summary */
}

/* 4. Enhanced "Read More" Button */
.read-more {
    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff; /* Use the existing accent color */
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.read-more:hover {
    background-color: #0056b3; /* Darker blue on hover */
    text-decoration: none;
    color: #e0e0e0; /* Slightly off-white on hover */
}

/* 5. Styling for the New Pagination */
.pagination {
    display: flex;
    justify-content: center; /* Center the pagination controls */
    align-items: center;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s, color 0.2s;
}

.pagination a:hover {
    background-color: #f0f0f0;
    color: #000;
}

.pagination .current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: bold;
}

/* --- Homepage Visual Upgrade --- */

/* 1. Hero Section */
.hero {
    background-color: #f8f9fa; /* A very light grey background */
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero h3 {
    font-size: 18px;
    font-weight: 500;
    color: #555;
    margin-bottom: 20px;
}

.hero p {
    font-size: 16px;
    color: #444;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* 2. Home Intro Section */
.home-intro p {
    font-size: 18px;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #333;
}

/* 3. Core Areas Section (Card-based) */
.core-areas {
    margin-top: 40px;
}

.core-areas ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.core-areas li {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

.core-areas li:hover {
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 4. Professional Contributions Section */
.professional-contributions {
    margin-top: 40px;
}

/* 5. Call-to-Action Links */
.cta-links {
    margin-top: 40px;
    text-align: center;
}

.cta-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cta-links a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cta-links a:hover {
    background-color: #0056b3;
}
