/* Global Styles for Other Pages */
.other-page-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

/* Placeholder Image Style */
.placeholder-img {
    background-color: #000;
    display: block;
    width: 100%;
    height: auto;
}

/* Banner Section */
.page-banner {
    width: 100%;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    min-height: 200px; /* Reserve height */
    aspect-ratio: 1440 / 300;
    border-radius: 20px;
}

/* Content Wrapper (Sidebar + Main) */
.content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 30px 0;
    padding: 0;
    gap: 40px;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #f9f9f9;
    padding: 20px 10px;
    border-radius: 4px;
}

.sidebar-group {
    margin-bottom: 30px;
}

.sidebar-group h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
    padding-left: 10px;
    border-left: 3px solid #ccc;
}

.sidebar-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-group li {
    margin-bottom: 10px;
}

.sidebar-group a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-group a:hover, .sidebar-group a.active {
    color: #C42924; /* Red color from design */
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: bold;
}

/* Main Article Styles */
.main-article {
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
}

.breadcrumb {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
    text-align: right;
}

.breadcrumb .current {
    color: #666;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: #000;
}

.article-content {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-image {
    margin: 40px 0;
    text-align: center;
    max-width: 582px;
}

.article-content img{
    margin: 20px 0;
    text-align: center;
    max-width: 750px;
}

.content-img {
    max-width: 100%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Hide PC Header explicitly if not handled globally */
    .header.pc, .footer.pc {
        display: none !important;
    }

    /* Mobile Header Styles */
    .mobile-header {
        display: flex;
        align-items: center;
        padding: 10px clamp(10px, 4vw, 20px);
        background-color: #fff;
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid #f0f0f0;
    }

    .back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(24px, 8vw, 30px);
        height: clamp(24px, 8vw, 30px);
        margin-right: clamp(5px, 2vw, 10px);
    }

    .mobile-search-bar {
        flex: 1;
        position: relative;
        display: flex;
        align-items: center;
        border-radius: 7px;
    }

    .mobile-search-input {
        width: 100%;
        height: clamp(32px, 9.6vw, 40px);
        border: 1px solid #C42924;
        border-radius: 7px;
        padding: 0 clamp(45px, 13.6vw, 60px) 0 clamp(10px, 4vw, 20px); /* Space for button */
        font-size: clamp(12px, 3.7vw, 14px);
        outline: none;
    }

    .mobile-search-btn {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: clamp(45px, 13.6vw, 60px);
        background-color: #C42924;
        border: none;
        border-radius: 0 7px 7px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Content Layout Adjustments */
    .page-banner {
        display: none;
    }

    .sidebar {
        display: none; /* Hidden as per screenshot */
    }

    .content-wrapper {
        flex-direction: column;
        margin: 0;
        padding: clamp(10px, 4vw, 20px);
        gap: 0;
    }

    .breadcrumb {
        text-align: left;
        margin-bottom: clamp(10px, 4vw, 20px);
        font-size: clamp(10px, 3vw, 12px);
        color: #999;
    }

    .page-title {
        font-size: clamp(18px, 5vw, 22px);
        margin-bottom: clamp(15px, 5vw, 25px);
        text-align: center;
    }

    .article-content {
        padding: 0;
        font-size: clamp(13px, 3.8vw, 15px);
        line-height: 1.6;
        color: #333;
    }
    
    .article-content p {
        margin-bottom: clamp(10px, 4vw, 20px);
        text-align: justify;
    }

    .article-image {
        margin: 20px 0;
        width: 100%;
        max-width: 100%;
    }

    .article-content img {
        margin: 20px 0;
        width: 100%;
        max-width: 100%;
    }
    
    .content-img {
        border-radius: 8px;
    }
}
