@charset "UTF-8";

/* =========================================================
   Fixed Page Styles (Prefix: pg-)
   ========================================================= */

/* --- Container & Layout --- */
.pg-container {
    margin: 0 auto;
    padding-bottom: 40px;
}

.pg-inner {
    display: block;
}

.pg-main {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Main Article Card --- */
.pg-article-card {
    background-color: #ffffff;
    margin-bottom: 30px;
    overflow: auto;
    border-radius: 4px;
    width: 100%;
}

.pg-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pg-content-body {
    padding: 40px 30px;
}

/* --- Header --- */
.pg-header {
    margin: 0 auto 40px auto;
    padding-bottom: 20px;
    position: relative;
    max-width: 100%;
}

.pg-title {
    font-size: 36px;
    line-height: 1.2;
    margin: 0 auto 20px auto;
    font-weight: 700;
    color: #000000;
    clear: both;
}

.pg-meta {
    color: #888888;
    font-size: 14px;
    text-align: right;
    float: right;
    margin-bottom: 30px;
}

/* --- Share Tools --- */
.pg-share-tools {
    display: flex;
    gap: 12px;
    float: left;
    overflow: auto;
    margin-bottom: 20px;
}

.pg-share-link {
    font-size: 24px;
    color: #000000;
    text-decoration: none;
    transition: text-shadow 0.2s ease;
}

.pg-share-link:hover {
    text-shadow: 1px -0px 0 #00A1D2, -1px 0px 0 #FC2792;
}

.pg-share-link.tw { color: #000000; }
.pg-share-link.fb { color: #000000; }
.pg-share-link.line { color: #000000; }

/* --- Entry Content (Article Body) --- */
.pg-entry-content {
    color: #333333;
    line-height: 1.8;
    clear: both;
}

.pg-entry-content p {
    font-size: 18px;
    line-height: 30px;
    margin: 0 auto 20px auto;
    max-width: 700px;
}

/* --- Headlines in Article --- */
.pg-entry-content h2 {
    border-left: 6px solid #e70314;
    color: #111111;
    margin: 40px auto 20px auto;
    padding: 10px 20px;
    font-size: 30px;
    line-height: 1.4;
    text-align: left;
    max-width: 700px;
}

.pg-entry-content h3 {
    font-size: 26px;
    line-height: 1;
    margin: 30px auto;
    max-width: 700px;
}

.pg-entry-content h4,
.pg-entry-content h5,
.pg-entry-content h6 {
    max-width: 700px;
    margin: 20px auto;
    font-weight: bold;
}

/* --- Lists, Images, Quotes --- */
.pg-entry-content ul, 
.pg-entry-content ol {
    margin: 0 auto 20px auto;
    max-width: 700px;
    padding-left: 20px;
}

.pg-entry-content li {
    margin-left: 30px;
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 10px;
}

.pg-entry-content blockquote {
    background-color: #f9f9f9;
    border-left: 5px solid #e70314;
    font-style: italic;
    margin: 30px auto;
    padding: 25px 30px;
    max-width: 700px;
    color: #555;
}

.pg-entry-content .wp-block-image,
.pg-entry-content .wp-block-gallery {
    background-color: #eeeeee;
    overflow: auto;
    margin: 0 auto 20px auto;
}

.pg-entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --- Related Pages Section --- */
.pg-related-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.pg-related-heading {
    background-color: #000000;
    color: #ffffff;
    padding: 15px 25px;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg-related-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.pg-related-card {
    background: #ffffff;
    position: relative;
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    height: 255px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.pg-related-card:hover {
    transform: translateY(-5px);
}

.pg-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-related-info {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: rgba(0,0,0,0.1);
}

.pg-related-title {
    position: absolute;
    bottom: 20px;
    right: 20px;
    left: 20px;
    margin: 0;
}

.pg-related-title a {
    text-decoration: none;
    color: #ffffff;
    font-size: 25px;
    line-height: 30px;
    text-shadow: 0px 1px 2px rgba(60,64,67,.3), 0px 1px 3px rgba(60,64,67,.15);
}

.pg-related-card:hover .pg-related-title a {
    text-decoration: underline;
}

.pg-related-link-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

/* =========================================================
   Responsive (max-width: 639px)
   ========================================================= */
@media screen and (max-width: 639px) {
    .pg-article-card {
        margin-bottom: 15px;
    }

    .pg-content-body {
        padding: 0 15px 15px 15px;
    }

    .pg-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .pg-meta {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .pg-share-link {
        font-size: 20px;
    }

    .pg-entry-content p {
        font-size: 16px;
        line-height: 30px;
        margin-bottom: 15px;
    }

    .pg-entry-content h2 {
        font-size: 24px;
        line-height: 1.4;
        margin: 30px auto 15px auto;
        padding: 8px 15px;
    }

    .pg-entry-content h3 {
        font-size: 20px;
        margin: 15px 0;
    }

    .pg-entry-content li {
        font-size: 18px;
        line-height: 32px;
    }

    .pg-related-grid {
        gap: 15px;
    }

    .pg-related-card {
        flex: 0 0 calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .pg-related-title a {
        font-size: 16px;
        line-height: 24px;
    }
}
