/* --- BLOG PAGE STYLES --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.blog-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.blog-title a {
    color: inherit;
    text-decoration: none;
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- BLOG DETAIL PAGE STYLES --- */
.article-hero {
    height: 400px;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    margin-top: -90px;
    padding-top: 90px;
}

/* Blog Specific Hero Backgrounds */
.blog-hero-abap {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/code-development.jpg');
}

.blog-hero-fiori {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/analytics-charts.jpg');
}

.blog-hero-s4hana {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/digital-network.jpg');
}

.article-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.article-content p,
.article-content li {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-main);
}

.article-content h2 {
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

[data-theme="dark"] .article-content h2 {
    color: var(--primary-color);
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

/* Code Blocks - Theme Aware */
code {
    background: var(--surface-hover);
    padding: 2px 5px;
    border-radius: 4px;
    color: #d63384;
    font-family: 'Consolas', monospace;
    border: 1px solid var(--border-color);
}

pre {
    background: #f4f6f9;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 25px;
    font-family: 'Consolas', monospace;
    border-left: 5px solid var(--primary-color);
    border: 1px solid var(--border-color);
    border-left-width: 5px;
}

[data-theme="dark"] pre {
    background: #2d2d2d;
    color: #f8f8f2;
    border-color: #444;
}

[data-theme="dark"] code {
    background: #333;
    color: #ff79c6;
    border-color: #444;
}

/* Special Boxes */
.highlight-box {
    background-color: var(--surface-hover);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    color: var(--text-main);
}

.step-box {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: var(--surface-color);
    box-shadow: var(--shadow);
}