/* --- Global Styles & Variables --- */
:root {
    --insight-primary-color: #007bff;
    --insight-primary-hover: #0056b3;
    --insight-bg-color: #f8f9fa;
    --insight-card-bg: #ffffff;
    --insight-text-color: #212529;
    --insight-text-secondary: #6c757d;
    --insight-heading-color: #1a1a1a;
    --insight-border-color: #e9ecef;
    --insight-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --insight-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--insight-text-color);
    background-color: var(--insight-bg-color);
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--insight-heading-color);
    line-height: 1.3;
}

/* --- Container --- */
.container-insigth {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- 📰 Blog Index Page --- */
.insights-listing .insight-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-summary {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--insight-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
}

.insight-summary:hover {
    transform: translateY(-5px);
    box-shadow: var(--insight-shadow-hover);
}

.insight-summary .cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

.insight-summary:hover .cover-image {
    transform: scale(1.05);
}

.insight-summary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    z-index: 2;
}

.insight-summary .summary-content {
    position: relative;
    z-index: 3;
    padding: 1.5rem;
    color: #fff;
}

.insight-summary h1 {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
}

.insight-summary h2 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin: 0 0 0.5rem 0;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.insight-summary h2 a {
    text-decoration: none;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.insight-summary .insight-meta {
    font-size: 0.8rem;
    opacity: 0.8;
}

.insight-summary p,
.insight-summary .read-more {
    display: none;
}

/* --- ✍️ Single Post Page --- */
.article-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.5px;
    color: #222;
    padding: 2rem 1rem;
}

.article-wrapper img.cover-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-wrapper h1 {
    font-size: clamp(1.8rem, 5vw, 2rem);
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: center;
}

.article-wrapper h2 {
    font-size: clamp(1.3rem, 4vw, 1.5rem);
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-wrapper p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.article-wrapper em {
    font-style: italic;
}

.insight-post .post-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.insight-post .post-header h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    margin-bottom: 1rem;
}

.insight-post .post-meta {
    color: var(--insight-text-secondary);
    font-size: 0.9rem;
}

.insight-post .post-cover-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: var(--insight-shadow);
}

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

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

.post-content a {
    color: var(--insight-primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: var(--insight-primary-hover);
}

.post-content blockquote {
    border-left: 4px solid var(--insight-primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--insight-text-secondary);
}

.post-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

.post-content code {
    font-family: 'Courier New', Courier, monospace;
}

.article-wrapper p,
.post-content p {
    font-family: 'Inter', sans-serif;
}

/* --- 📱 Responsive Design --- */
@media (max-width: 768px) {
    .insights-listing .insight-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Post Tags --- */
.post-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--insight-border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.post-tags .tag {
    display: inline-block;
    background-color: #f1f1f1;
    color: #555;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.post-tags .tag:hover {
    background-color: var(--insight-primary-color);
    color: #fff;
}

/* --- Alternate Language Links --- */
.alternate-language {
    text-align: center;
    margin: 20px 0;
}

.alternate-language-link {
    font-size: 0.6rem;
    color: #3498db;
    text-decoration: overline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.alternate-language-link:hover {
    color: #2c80b4;
    text-decoration: none;
}
