/*
Theme Name: Winit Law Theme
Author: Winit
Description: A modular, SEO-optimized law theme.
Version: 1.0
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* Global Styles */
body {
    font-family: 'IBM Plex Sans', 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #ffffff;
    /* Explicitly set white background */
}

/* Global Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Single Post Layout (Content + Sidebar) */
.single-post-container {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. Center: Content */
.site-content {
    width: 840px;
    flex-shrink: 0;
}

/* 3. Right: Sidebar (Sticky) */
.widget-area {
    width: 330px;
    flex-shrink: 0;
    position: sticky;
    /* Make the whole sidebar sticky */
    top: 20px;
    /* Offset from top */
    align-self: flex-start;
    /* Required for sticky in flex container */
}

/* Tablet/Mobile Layout */
@media (max-width: 1024px) {
    .single-post-container {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-content {
        width: 100%;
        margin-bottom: 40px;
    }

    .widget-area {
        width: 100%;
        max-width: none;
    }
}

/* Page Header (Generic Pages) */
.law-page-header {
    width: 100%;
    height: 200px;
    background-color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.law-page-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.law-page-title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}