/* Base Styles from tin.html */
:root {
    --brand-blue: #0052CC;
    --brand-blue-dark: #003E99;
    --brand-yellow: #FFC400;
    --text-primary: #172B4D;
    --text-secondary: #5E6C84;
    --bg-light: #FFFFFF;
    --bg-secondary: #F4F5F7;
    --border-color: #DFE1E6;
    --font-global: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-global);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.7;
}

html {
    scroll-padding-top: 100px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-padding {
    padding: 80px 0;
}
main > .section-padding:first-child {
    padding-top: 40px;
}
.section-bg {
    background-color: var(--bg-secondary);
}

h1, h2, h3, h4 {
    font-family: var(--font-global);
    color: var(--text-primary);
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-global);
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: var(--bg-light);
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--brand-blue-dark);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.2);
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: flex-start;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--brand-blue);
}
.breadcrumb .separator {
    margin: 0 0.5rem;
}

/* Article Styles */
.article-header {
    margin-bottom: 2rem;
}
.article-header h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.article-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.article-meta span {
    margin-right: 1.5rem;
}
.article-meta .category a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
}
.article-meta .category a:hover {
    text-decoration: underline;
}

/* New Styles for Case Study Intro */
.case-study-hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: block;
}

.case-study-infobox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.info-item strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}
.info-item p, .info-item a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    text-decoration: none;
}
.info-item a:hover {
    text-decoration: underline;
    color: var(--brand-blue);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 1.5rem;
}
.article-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--brand-blue);
    background-color: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
}
.article-content .author {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
    font-style: normal;
}

/* Sidebar & TOC */
.article-sidebar {
    position: sticky;
    top: 100px;
}
.sidebar-box {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.sidebar-box h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.sidebar-box ul {
    padding-left: 0;
    list-style-position: inside;
}
.sidebar-box ul li {
    margin-bottom: 0.75rem;
}
.sidebar-box ul li a {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
}
.sidebar-box ul li a:hover {
    color: var(--brand-blue);
}

/* Related Posts */
.related-posts {
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding-top: 4rem;
}
.related-posts h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.related-post-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}
.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.related-post-content {
    padding: 1.5rem;
}
.related-post-content h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 0;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        display: none;
    }
}
@media (max-width: 768px) {
    .article-header h1 { font-size: 2rem; }
    .related-posts-grid { grid-template-columns: 1fr; }
}
