/* Entire Q&A Section - for a softer look */
.wp-block-group.section-qa {
    background-color: #ffffff; /* Near-white background to maintain a clean feel */
    border: 1px solid #f0f0f0; /* Thinner, less noticeable border */
    border-radius: 12px; /* More rounded corners for a gentle impression */
    padding: 30px 25px; /* Slightly wider padding on all sides for a relaxed feel */
    margin-bottom: 35px; /* Adjust bottom margin with other sections */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* Very light shadow for an elegant look */
}

/* Question (Q.) Heading */
.wp-block-group.section-qa .qa-question {
    font-size: 1.2em; /* Font size slightly larger than body text but still blends in */
    font-weight: bold; /* Keep it bold */
    color: #4A4A4A; /* Calm dark gray */
    margin-top: 0;
    margin-bottom: 12px; /* Fine-tune margin between the question and answer */
    padding-left: 35px; /* Widen left padding for the Q icon */
    position: relative;
    line-height: 1.4; /* Ensure line height for readability */
}

/* Add Q icon - soft-toned pink */
.wp-block-group.section-qa .qa-question::before {
    content: "Q.";
    font-size: 1.0em; /* Adjust icon size */
    font-weight: bold;
    color: #FF6F91; /* Soft pink */
    position: absolute;
    left: 0;
    top: 50%; /* Position vertically centered */
    transform: translateY(-50%); /* Align vertically centered */
    width: 25px; /* Ensure width for the icon */
    text-align: center;
}

/* Answer (A.) Heading */
.wp-block-group.section-qa .qa-answer {
    font-size: 1.1em; /* Slightly smaller than the question, but larger than the body text */
    font-weight: 600; /* Semi-bold */
    color: #666666; /* Slightly lighter gray than the question */
    margin-bottom: 12px; /* Fine-tune margin between the answer and the main text */
    padding-left: 35px; /* Widen left padding for the A icon */
    position: relative;
    line-height: 1.4;
}

/* Add A icon - soft-toned blue */
.wp-block-group.section-qa .qa-answer::before {
    content: "A.";
    font-size: 1.0em; /* Adjust icon size */
    font-weight: bold;
    color: #64B5F6; /* Soft blue */
    position: absolute;
    left: 0;
    top: 50%; /* Position vertically centered */
    transform: translateY(-50%); /* Align vertically centered */
    width: 25px; /* Ensure width for the icon */
    text-align: center;
}

/* Normal paragraphs within the Q&A */
.wp-block-group.section-qa p {
    font-size: 0.98em; /* Fine-tune the body font size */
    line-height: 1.8; /* Increase line height further for readability */
    color: #555555; /* Body text color */
    margin-bottom: 1em;
}

/* Lists within the Q&A */
.wp-block-group.section-qa ul {
    list-style: disc;
    margin-left: 25px; /* Widen the left margin slightly */
    margin-bottom: 15px;
    color: #555555; /* List item color */
}

.wp-block-group.section-qa ul li {
    margin-bottom: 8px; /* Adjust margin between list items */
    line-height: 1.6; /* Adjust line height of list items */
}

/* Annotation text */
.wp-block-group.section-qa .text-note {
    font-size: 0.8em; /* Even smaller */
    color: #888; /* Lighter gray */
    margin-top: 15px;
    text-align: right; /* Right-aligned for subtlety */
}

/* Menu example / price range heading */
.wp-block-group.section-qa .menu-heading {
    font-size: 1.1em;
    font-weight: bold;
    color: #4A4A4A;
    margin-top: 30px; /* Ensure top margin */
    margin-bottom: 10px;
    border-bottom: 2px solid #F0F0F0; /* Slightly emphasize the bottom border with a soft color */
    padding-bottom: 8px; /* Adjust padding with the bottom border */
}

/* Strengthen the h2 heading for .section-heading and add vertical margins */
.section-heading {
    font-size: 1.8em; /* Increase font size */
    font-weight: 800; /* Bolder */
    color: #333333; /* Slightly darker color */
    margin-top: 60px; /* Widen the top margin */
    margin-bottom: 40px; /* Widen the gap with the Q&A container */
    text-align: center; /* Center align */
    padding-bottom: 15px; /* Padding with the bottom border */
    border-bottom: 3px solid #FFEDEE; /* Thick, soft pink bottom border */
    line-height: 1.3;
}

/* ---------------------------------------------------- */
/* Adjustments for the second half of the content */

/* Subtitle for the entire article (e.g., "Gen Z sees it as an accessory, while middle-aged generations use it for health management!") */
.article-subtitle {
    font-size: 1.1em; /* Slightly larger */
    color: #888888; /* Calm gray */
    text-align: center; /* Center align */
    margin-top: 15px; /* Margin from H1 */
    margin-bottom: 30px; /* Margin to the lead text */
    font-weight: 500; /* Slightly thicker/bolder */
}


/* Entire section for each age group - styled similarly to the Q&A box for consistency */
.wp-block-group.age-group-section {
    background-color: #fcfcfc; /* Slightly brighter background color than Q&A */
    border: 1px solid #f5f5f5; /* Even more subtle border than Q&A */
    border-radius: 10px; /* Round the corners */
    padding: 30px 25px;
    margin-bottom: 40px; /* Margin between each age group section */
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); /* Very light shadow */
}

/* Heading for each age group (h3) */
.age-group-heading {
    font-size: 1.5em; /* Slightly larger than the Q&A question heading */
    font-weight: bold;
    color: #5A5A5A; /* Calm color */
    margin-top: 0;
    margin-bottom: 25px; /* Ample margin at the bottom */
    text-align: center; /* Center align */
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #E0E0E0; /* Subtle bottom border */
}

/* Keyword list title for each age group */
.keyword-list-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #777777;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center; /* Center align */
    background-color: #F8F8F8; /* Light background color */
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block; /* Make it an inline-block element for centering */
    width: auto; /* Fit width to content */
}

/* Keyword list for each age group */
.keyword-list {
    list-style: none; /* Remove default list style */
    padding: 0;
    margin: 0 auto 30px auto; /* Top/bottom margin and center alignment */
    display: flex; /* Use Flexbox for horizontal alignment */
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: center; /* Center align */
    gap: 15px; /* Gap between items */
}

.keyword-list li {
    background-color: #FFEDEE; /* Soft pink background color */
    color: #C06C84; /* Text color that matches pink */
    padding: 8px 20px;
    border-radius: 20px; /* Round the corners significantly to look like a tag */
    font-size: 0.95em;
    font-weight: 500;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Sub-heading for promotional media, campaign examples, and salon treatment menu examples */
.sub-heading {
    font-size: 1.15em;
    font-weight: bold;
    color: #5A5A5A;
    margin-top: 40px; /* Increase top margin to emphasize the separation */
    margin-bottom: 20px;
    padding-left: 10px; /* Slight indent */
    border-left: 5px solid #FFCDD2; /* Soft pink left border */
}

/* Table Style Adjustments */
.wp-block-table.table-bordered {
    width: 100%;
    border-collapse: collapse; /* Collapse borders to remove overlap */
    margin-bottom: 30px; /* Bottom margin */
}

.wp-block-table.table-bordered th,
.wp-block-table.table-bordered td {
    border: 1px solid #eeeeee; /* Very thin border */
    padding: 12px 15px; /* Padding within cells */
    text-align: left;
    vertical-align: top;
    font-size: 0.95em;
    color: #555555;
}

.wp-block-table.table-bordered th {
    background-color: #f8f8f8; /* Header background color */
    font-weight: bold;
    color: #4A4A4A;
}

/* Menu List Style Adjustments */
.menu-list {
    list-style: none; /* Remove default list style */
    padding: 0;
    margin-bottom: 30px;
}

.menu-list > li { /* Top-level list items */
    background-color: #FFF9F9; /* Very pale pink background */
    border: 1px solid #FFEDEE; /* Soft pink border */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px; /* Margin between each menu item */
    font-weight: bold; /* Make menu titles bold */
    color: #4A4A4A;
}

.menu-list .nested-list { /* Nested list (for content, time, price, etc.) */
    list-style: none; /* Remove default list style */
    padding: 0;
    margin-top: 10px;
}

.menu-list .nested-list li {
    font-weight: normal; /* Remove bold */
    color: #666666;
    margin-bottom: 5px;
    line-height: 1.6;
}

.menu-list .nested-list li::before { /* Custom bullet icon */
    content: "・"; /* Dot */
    color: #FF6F91; /* Pink color */
    margin-right: 8px;
}

/* Contact Information Block */
.contact-info-block {
    background-color: #F9FDF9; /* Pale green background color */
    border: 1px solid #E6F5E6; /* Pale green border */
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px; /* Margin on top */
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.contact-info-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #4CAF50; /* Greenish color */
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #D5EED5;
    padding-bottom: 10px;
}

.contact-info-intro {
    font-style: italic;
    color: #777;
    text-align: center;
    margin-bottom: 15px;
}

.organization-name {
    font-size: 1.15em;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.organization-description {
    font-size: 0.95em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.address-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.address-list li {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.address-list li::before {
    content: "📍"; /* Pin emoji */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1em;
    color: #FF6F91; /* Pinkish color */
}

/* Summary Section */
.summary-section {
    background-color: #FDFDFD; /* Near-white background */
    border: 1px solid #EEEEEE;
    border-radius: 15px; /* Emphasize roundness */
    padding: 40px 30px;
    margin-top: 50px; /* Large top margin */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Slightly stronger shadow for distinction */
    text-align: center; /* Center align text */
}

.summary-section p {
    font-size: 1.1em; /* Make the summary easy to read */
    line-height: 1.8;
    color: #444;
    max-width: 800px; /* Limit width for readability */
    margin: 0 auto; /* Center align */
}


/* Adjustments for narrow screens like smartphones */
@media (max-width: 768px) {
    .wp-block-group.section-qa {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    .wp-block-group.section-qa .qa-question,
    .wp-block-group.section-qa .qa-answer {
        font-size: 1.1em;
        padding-left: 30px;
    }
    .wp-block-group.section-qa .qa-question::before,
    .wp-block-group.section-qa .qa-answer::before {
        font-size: 0.9em;
        width: 20px;
    }
    .section-heading {
        font-size: 1.5em; /* Size adjustment for smartphones */
        margin-bottom: 30px;
        padding-bottom: 10px;
    }

    /* Age group section adjustments */
    .wp-block-group.age-group-section {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    .age-group-heading {
        font-size: 1.3em;
        margin-bottom: 20px;
    }
    .keyword-list {
        gap: 10px;
        margin-bottom: 25px;
    }
    .keyword-list li {
        font-size: 0.85em;
        padding: 6px 15px;
    }
    .sub-heading {
        font-size: 1.05em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .wp-block-table.table-bordered th,
    .wp-block-table.table-bordered td {
        padding: 10px;
        font-size: 0.9em;
    }
    .menu-list > li {
        padding: 15px;
        margin-bottom: 15px;
    }
    .menu-list .nested-list li {
        font-size: 0.9em;
    }
    .contact-info-block {
        padding: 20px;
    }
    .contact-info-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    .organization-name {
        font-size: 1.0em;
    }
    .organization-description, .address-list li {
        font-size: 0.85em;
    }
    .summary-section {
        padding: 30px 20px;
        margin-top: 40px;
    }
    .summary-section p {
        font-size: 1.0em;
    }
}

/* General adjustments for margins and line-height */
main h1,
main h2,
main h3 {
    margin-top: 2.5em; /* Widen margin above headings */
    margin-bottom: 1em; /* Adjust margin below headings as well */
    line-height: 1.4; /* Add a little more space to heading line-height */
}

main p {
    line-height: 1.8; /* Widen body line-height for readability */
    margin-bottom: 1.5em; /* Adjust margin between paragraphs as well */
}

/* Table of Contents */
.table-of-contents {
    background-color: #fce4ec; /* Light pinkish color */
    border: 1px solid #f48fb1; /* Slightly darker pink border */
    padding: 20px; /* Increase padding */
    margin-bottom: 40px; /* Widen bottom margin */
    border-radius: 8px; /* Round the corners */
}

.table-of-contents .toc-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
    color: #c2185b; /* Darker pink */
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents ul li {
    margin-bottom: 8px; /* Margin between TOC items */
}

.table-of-contents ul li a {
    text-decoration: none;
    color: #880e4f; /* TOC link color */
    transition: color 0.3s ease;
}

.table-of-contents ul li a:hover {
    color: #d81b60; /* Color on hover */
    text-decoration: underline;
}

/* Entire Q&A Section - for a softer look */
/* Apply .wp-block-group.section-qa to .faq-section */
.wp-block-group.section-qa {
    background-color: #ffffff; /* Near-white background to maintain a clean feel */
    border: 1px solid #f0f0f0; /* Thinner, less noticeable border */
    border-radius: 12px; /* More rounded corners for a gentle impression */
    padding: 30px 25px; /* Slightly wider padding on all sides for a relaxed feel */
    margin-bottom: 35px; /* Adjust bottom margin with other sections */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* Very light shadow for an elegant look */
}

.faq-section .faq-title.section-heading { /* Q&A Section Title */
    font-size: 1.8em; /* Increase font size */
    font-weight: 800; /* Bolder */
    color: #db7093; /* Change color to #db7093 */
    margin-top: 0; /* margin-top is 0 as it's a title within the Q&A section */
    margin-bottom: 40px; /* Widen the gap with the Q&A container */
    text-align: center; /* Center align */
    padding-bottom: 15px; /* Padding with the bottom border */
    border-bottom: 3px solid #FFEDEE; /* Thick, soft pink bottom border */
    line-height: 1.3;
}

.faq-item-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Gap between each Q&A item */
}

.faq-item { /* Container for individual Q&A items */
    background-color: #ffffff; /* Set background of each Q&A item to white */
    border: 1px solid #ffccdd; /* Soft pink border */
    border-radius: 10px; /* Round the corners */
    padding: 25px; /* Padding for each item */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Add a light shadow */
}

/* Question Heading (Q.) */
.faq-item .qa-question {
    font-size: 1.2em; /* Font size slightly larger than body text but still blends in */
    font-weight: bold; /* Keep it bold */
    color: #4A4A4A; /* Calm dark gray */
    margin-top: 0; /* Remove margin-top for Q */
    margin-bottom: 12px; /* Fine-tune margin between the question and answer */
    padding-left: 35px; /* Widen left padding for the Q icon */
    position: relative;
    line-height: 1.4; /* Ensure line height for readability */
    /* display: flex; align-items: center; is unnecessary because positioning is done with a pseudo-element */
}

/* Add Q icon - soft-toned pink */
.faq-item .qa-question::before {
    content: "Q."; /* Restore the dot */
    font-size: 1.0em; /* Revert icon size to original */
    font-weight: bold;
    color: #db7093; /* Change Q mark text color to #db7093 */
    background-color: transparent; /* Set background color to transparent */
    position: absolute;
    left: 0;
    top: 0; /* Align with the top of the question text */
    /* transform: translateY(-50%); */ /* Unnecessary */
    width: 25px; /* Adjust icon width */
    text-align: center; /* Center align */
    flex-shrink: 0; /* Don't allow shrinking */
}


/* Answer Heading (A.) */
.faq-item .qa-answer {
    font-size: 1.1em; /* Slightly smaller than the question, but larger than the body text */
    font-weight: 600; /* Semi-bold */
    color: #666666; /* Slightly lighter gray than the question */
    margin-bottom: 12px; /* Fine-tune margin between the answer and the main text */
    padding-left: 35px; /* Widen left padding for the A icon */
    position: relative;
    line-height: 1.4;
    /* display: flex; align-items: center; is unnecessary because positioning is done with a pseudo-element */
}

/* Add A icon - soft-toned blue */
.faq-item .qa-answer::before {
    content: "A."; /* Restore the dot */
    font-size: 1.0em; /* Revert icon size to original */
    font-weight: bold;
    color: #c2185b; /* Change A mark color to dark pink */
    background-color: transparent; /* Set background color to transparent */
    position: absolute;
    left: 0;
    top: 0; /* Align with the top of the answer text */
    /* transform: translateY(-50%); */ /* Unnecessary */
    width: 25px; /* Adjust icon width */
    text-align: center; /* Center align */
    flex-shrink: 0; /* Don't allow shrinking */
}

/* Normal paragraphs within the Q&A */
.faq-item p.answer-detail { /* Apply the answer-detail class */
    font-size: 0.98em; /* Fine-tune the body font size */
    line-height: 1.8; /* Increase line height further for readability */
    color: #555555; /* Body text color */
    margin-bottom: 1em;
}

.faq-item .answer-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.faq-item .faq-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-item .faq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Handle text expansion when image is removed */
.faq-item .answer-content:not(:has(.faq-image)) .answer-detail {
    width: 100%;
}


/* Summary Section */
/* Apply .wp-block-group.summary-section to .summary-box */
.wp-block-group.summary-section {
    background-color: #fff0f5; /* To a light pink that balances with #db7093 (pale cherry blossom pink) */
    border: 1px solid #ffb6c1; /* Slightly darker pink border (light pink) */
    border-radius: 10px; /* Round the corners */
    padding: 25px;
    margin-top: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.summary-section h2 {
    margin-top: 10px;
}
.summary-section h3 {
    color: #db7093; /* To the main color #db7093 */
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    margin-top: 10px;
}

.summary-section p {
    line-height: 1.9;
    color: #444;
    text-align: left;
}

/* Footnotes Section */
.footnotes {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #777;
}

.footnotes h3 {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 15px;
    text-align: left; /* Revert to left align */
    margin-top: 10px;
}

.footnotes ol {
    list-style-type: decimal;
    margin-left: 20px;
    padding-left: 0;
}

.footnotes li {
    margin-bottom: 8px;
    line-height: 1.6;
    text-align: left;
}


/* No changes to other existing CSS class definitions */
/* .table-of-contents, .table-of-contents .toc-title, .table-of-contents ul, .table-of-contents ul li, .table-of-contents ul li a etc. */
/* .section-heading (reused for Q&A title) */
/* .article-subtitle, .wp-block-group.age-group-section, .age-group-heading, .keyword-list-title, .keyword-list, .keyword-list li, .sub-heading, .wp-block-table.table-bordered, .wp-block-table.table-bordered th, .wp-block-table.table-bordered td, .menu-list, .menu-list > li, .menu-list .nested-list, .menu-list .nested-list li, .menu-list .nested-list li::before, .contact-info-block, .contact-info-title, .contact-info-intro, .organization-name, .organization-description, .address-list, .address-list li, .address-list li::before */

/* Adjustments for narrow screens like smartphones */
@media (max-width: 768px) {
    .wp-block-group.section-qa {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    .faq-item .qa-question,
    .faq-item .qa-answer { /* Corrected class name */
        font-size: 1.1em;
        padding-left: 30px;
    }
    .faq-item .qa-question::before,
    .faq-item .qa-answer::before { /* Corrected class name */
        font-size: 1.2em; /* Size adjustment for smartphones */
        /* Circle container is not needed, so size is not needed */
    }
    .faq-section .faq-title.section-heading { /* Corrected class name */
        font-size: 1.5em; /* Size adjustment for smartphones */
        margin-bottom: 30px;
        padding-bottom: 10px;
    }

    /* Age group section adjustments */
    /* ... No changes to existing definitions ... */
    .wp-block-group.age-group-section {
        padding: 25px 15px;
        margin-bottom: 30px;
    }
    .age-group-heading {
        font-size: 1.3em;
        margin-bottom: 20px;
    }
    .keyword-list {
        gap: 10px;
        margin-bottom: 25px;
    }
    .keyword-list li {
        font-size: 0.85em;
        padding: 6px 15px;
    }
    .sub-heading {
        font-size: 1.05em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .wp-block-table.table-bordered th,
    .wp-block-table.table-bordered td {
        padding: 10px;
        font-size: 0.9em;
    }
    .menu-list > li {
        padding: 15px;
        margin-bottom: 15px;
    }
    .menu-list .nested-list li {
        font-size: 0.9em;
    }
    .contact-info-block {
        padding: 20px;
    }
    .contact-info-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    .organization-name {
        font-size: 1.0em;
    }
    .organization-description, .address-list li {
        font-size: 0.85em;
    }
    .wp-block-group.summary-section { /* Corrected class name */
        padding: 30px 20px;
        margin-top: 40px;
    }
    .summary-section p {
        font-size: 1.0em;
    }
}


/* Related Blog Card Section */
.related-post-card-section {
    margin-top: 60px; /* Large top margin */
    margin-bottom: 50px; /* Widen bottom margin to distinguish from footnotes */
    padding-top: 30px; /* Add top padding to create space from the dividing line */
    border-top: 1px solid #eee; /* Light dividing line at the top */
}

.related-post-card-section .related-post-card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #db7093; /* Match the site's main color */
    text-align: center;
    margin-bottom: 30px; /* Margin between title and cards */
    position: relative;
    padding-bottom: 10px; /* Space with the underline */
}

.related-post-card-section .related-post-card-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ffb6c1; /* Soft pink underline */
    margin: 10px auto 0;
}

.related-post-card {
    border: 1px solid #ffccdd; /* Soft pink border */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Slightly stronger shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px); /* Slightly elevate on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.related-post-card .related-post-link {
    display: flex; /* Align image and content horizontally */
    text-decoration: none;
    color: inherit;
    flex-direction: column; /* Stack vertically on small screens */
}

@media (min-width: 769px) {
    .related-post-card .related-post-link {
        flex-direction: row; /* Align horizontally on large screens */
    }
}


.related-post-thumbnail {
    flex-shrink: 0; /* Don't allow shrinking */
    width: 100%; /* Full width on small screens */
    height: 200px; /* Image height */
    overflow: hidden;
    position: relative; /* To position img::after */
    margin: 20px 10px;
    border-radius: 10px;
}

@media (min-width: 769px) {
    .related-post-thumbnail {
        width: 35%; /* Width on large screens */
        height: auto; /* Auto-adjust height */
        max-height: 200px; /* Set max height */
    }
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the container */
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.05); /* Enlarge image on hover */
}

.related-post-content {
    padding: 20px 25px;
    flex-grow: 1; /* Occupy the remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center align */
}

.related-post-category {
    font-size: 0.9em;
    font-weight: bold;
    color: #c2185b; /* Dark pink */
    margin-bottom: 8px;
    display: inline-block; /* To use with text-align: center; */
    padding: 3px 8px; /* Add padding */
    background-color: #fce4ec; /* Light pink background */
    border-radius: 5px; /* Round the corners */
}

.related-post-heading {
    font-size: 1.3em;
    font-weight: bold;
    color: #4a4a4a; /* Calm dark gray */
    margin-bottom: 10px;
    line-height: 1.5;
}

.related-post-description {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .related-post-card-section {
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .related-post-card-section .related-post-card-title {
        font-size: 1.3em;
        margin-bottom: 20px;
    }
    .related-post-content {
        padding: 15px 20px;
    }
    .related-post-heading {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    .related-post-description {
        font-size: 0.85em;
        -webkit-line-clamp: 4; /* Limit to 4 lines on mobile */
    }
}