/* ImmoLogic Main Stylesheet - Updated to match main website color scheme */
/* Cache bust: 2026-03-17-1509 */
* {
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Header container - left aligned content, fills nav width */
.header-container {
    max-width: 1200px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
}

/* Header & Navigation - White background with blue text to match main site - CACHE BUST */
header {
    background-color: #0a1628 !important; /* DARK NAVY */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #112d4e;
}

/* Header container - full width, left aligned */
header {
    background-color: #0a1628 !important;
    padding: 1rem 0;
}

/* Navigation container - left aligned */
nav {
    max-width: 1200px;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

/* Logo container - spans full height of both rows */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 60px; /* Increased to span both rows */
}

/* Logo image - bigger to match height */
.logo-img {
    height: 60px; /* Increased to match container height */
    width: auto;
}

/* Logo text - bigger and centered vertically */
.logo {
    font-size: 1.75rem; /* Larger text */
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 60px; /* Match container height */
}

/* Main content container - left aligned */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Blog grid - left aligned */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    justify-content: start; /* Left align grid items */
}

/* Blog header - centered */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Blog header title - centered */
.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

/* Blog description - centered */
.blog-description {
    font-size: 1.125rem;
    color: #e5e7eb;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff; /* White text on dark blue background */
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    color: #ffffff; /* White text on dark blue background */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #2563eb; /* Blue on hover */
}

.nav-links a.active {
    color: #2563eb; /* Blue for active page */
    font-weight: 600;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #374151; /* Darker border on dark background */
}

.language-switcher a {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.language-switcher a.active {
    background-color: #2563eb; /* Blue accent */
    color: white;
}

.language-switcher a:not(.active) {
    background-color: #1f2937; /* Dark gray on dark background */
    color: #9ca3af; /* Light gray text */
}

.language-switcher a:not(.active):hover {
    background-color: #374151; /* Darker gray on hover */
}

/* Main Content */
main {
    padding: 3rem 0;
    background-color: #ffffff; /* White background for content */
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #0a1628; /* Dark blue text on white background */
    margin-bottom: 1rem;
}

.blog-header h1 span {
    color: #2563eb; /* Blue accent */
    font-weight: 700;
}

.blog-description {
    font-size: 1.125rem;
    color: #4b5563; /* Gray text on white background */
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white; /* White card background */
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Subtle shadow like main site */
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Shadow like main site */
}

.post-header {
    margin-bottom: 1rem;
}

.post-category {
    display: inline-block;
    background-color: #dbeafe; /* Light blue background like main site */
    color: #1e40af; /* Dark blue text like main site */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.post-emoji {
    font-size: 1.5rem;
    vertical-align: middle;
}

.post-card h2 {
    font-size: 1.25rem;
    color: #1f2937; /* Dark gray like main site */
    margin: 0.75rem 0;
}

.post-card h2 a {
    color: inherit;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: #2563eb; /* Blue accent on hover like main site */
}

.post-meta {
    color: #6b7280; /* Gray like main site */
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #4b5563; /* Gray like main site */
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #2563eb; /* Blue accent like main site */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.read-more:hover {
    text-decoration: underline; /* Underline like main site */
}

/* Footer - Match main ImmoLogic website */
footer {
    background-color: #1f2937; /* Dark gray like main site */
    color: #f9fafb; /* Light text like main site */
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.copyright {
    color: #9ca3af; /* Gray text like main site */
    font-size: 0.875rem;
}

.footer-tagline {
    color: #2563eb; /* Blue accent */
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 0.5rem 1rem;
        width: 100%;
    }
    
    .header-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .logo-container {
        height: auto;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo {
        font-size: 1.5rem;
        height: auto;
    }
    
    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .language-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-top: 0.5rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .blog-header h1 {
        font-size: 1.75rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Blog Post Page Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-title {
    font-size: 2.5rem;
    color: #1f2937; /* Dark gray for post titles on white background */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4b5563; /* Medium gray for meta */
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151; /* Dark gray like main site */
}

.post-content h2 {
    font-size: 1.75rem;
    color: #1f2937; /* Dark gray like main site */
    margin: 2rem 0 1rem;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #1f2937; /* Dark gray like main site */
    margin: 1.5rem 0 0.75rem;
}

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

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content code {
    background-color: #f3f4f6; /* Light gray like main site */
    color: #374151; /* Dark gray text */
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
}

.post-content pre {
    background-color: #1f2937; /* Dark gray like main site */
    color: #f9fafb; /* Light text like main site */
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid #2563eb; /* Blue accent like main site */
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #4b5563; /* Gray like main site */
    font-style: italic;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb; /* Blue accent like main site */
    text-decoration: none;
    font-weight: 500;
    margin-top: 3rem;
    padding: 0.75rem 1.5rem;
    background-color: #eff6ff; /* Light blue background */
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: #dbeafe; /* Darker blue background on hover */
    text-decoration: none;
}

/* Category-specific colors */
.post-category.automation {
    background-color: #dbeafe; /* Light blue */
    color: #1e40af;
}

.post-category.legal {
    background-color: #fef3c7; /* Light yellow */
    color: #92400e;
}

.post-category.strategy {
    background-color: #dcfce7; /* Light green */
    color: #166534;
}

.post-category.ai {
    background-color: #f3e8ff; /* Light purple */
    color: #6b21a8;
}

.post-category.infrastructure {
    background-color: #e0f2fe; /* Light blue */
    color: #075985;
}

.post-category.tools {
    background-color: #fce7f3; /* Light pink */
    color: #9d174d;
}

