/* Static Archive Polish & Responsive Fixes for Black Girl Mom */

/* Ensure images never overflow narrow columns or mobile screens */
.entry-content img,
.entry-content figure,
.wp-block-image,
.wp-block-image img,
.post-thumbnail img {
    max-width: 100% !important;
    height: auto !important;
}

.wp-block-image {
    margin: 1.5em 0;
}

.wp-block-image figure {
    margin: 0 auto;
    max-width: 100%;
}

.blog #primary .post .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

span.post-thumbnail {
    display: block;
}

/* Fix theme CSS missing semicolon on .banner-slider .item .text-holder .entry-title */
.banner-slider .item .text-holder .entry-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.333em;
    line-height: 1.25em;
    color: #fff;
}

.banner-slider .item .text-holder .entry-title span {
    color: #fff;
}

.banner-slider .item img {
    width: 100%;
    height: 450px !important;
    object-fit: cover;
}

/* Mobile & desktop logo sizing safeguard */
.site-header .site-branding .custom-logo-link img {
    max-width: 100%;
    height: auto;
}

.mobile-header .mobile-site-header .site-branding .custom-logo-link img {
    max-height: 44px;
    width: auto;
    max-width: 100%;
}

/* Clean archive cards without featured images */
.archive #primary .post .text-holder,
.search #primary .search-post .text-holder {
    padding: 28px 32px;
}

/* Subtle archival preview label on unarchived excerpt cards */
.bgm-excerpt-note {
    display: inline-block;
    font-size: 0.722em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
}

/* Sidebar: Browse Topics & Connect With Us */
.widget_bgm_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_bgm_categories ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.widget_bgm_categories ul li a {
    display: inline-block;
    padding: 6px 13px;
    font-size: 0.778em;
    font-weight: 600;
    color: #333;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.widget_bgm_categories ul li a:hover {
    background: #ff91a4;
    border-color: #ff91a4;
    color: #fff;
}

.widget_bgm_connect .bgm-connect-desc {
    font-size: 0.833em;
    line-height: 1.55;
    color: #666;
    margin: 0 0 16px;
}

.widget_bgm_connect .bgm-social-pills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget_bgm_connect .bgm-social-pills li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 0.833em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.widget_bgm_connect .bgm-social-pills li a:hover {
    border-color: #ff91a4;
    background: #fff7f9;
    color: #ff91a4;
}

.widget_bgm_connect .bgm-social-pills li a i {
    width: 18px;
    text-align: center;
    color: #ff91a4;
    font-size: 1.1em;
}

/* Search results styling */
body.bgm-search-active #primary .site-main {
    height: auto !important;
    position: static !important;
}

.bgm-search-header {
    margin: 0 0 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.bgm-search-header .bgm-search-kicker {
    display: block;
    font-size: 0.722em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    margin-bottom: 6px;
}

.bgm-search-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.2em;
    margin: 0 0 8px;
    color: #111;
}

.bgm-search-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.833em;
    color: #666;
}

.bgm-search-clear {
    color: #ff91a4;
    font-weight: 700;
    text-decoration: none;
}

.bgm-search-clear:hover {
    text-decoration: underline;
}

.bgm-search-card {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    margin: 0 0 28px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.bgm-search-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.bgm-search-thumb {
    width: 224px;
    flex-shrink: 0;
    display: block;
    background: #fdf5f6;
}

.bgm-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bgm-search-body {
    flex: 1 1 0;
    padding: 24px 28px;
}

.bgm-search-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.bgm-search-cats a {
    font-size: 0.556em;
    line-height: 1em;
    letter-spacing: 1px;
    color: #fff;
    font-weight: 700;
    background: #ff91a4;
    border-radius: 3px;
    text-transform: uppercase;
    padding: 5px 7px;
    text-decoration: none;
}

.bgm-search-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.55em;
    line-height: 1.25;
    margin: 0 0 10px;
}

.bgm-search-title a {
    color: #111;
    text-decoration: none;
}

.bgm-search-title a:hover {
    color: #ff91a4;
}

.bgm-search-excerpt {
    font-size: 0.889em;
    color: #555;
    line-height: 1.6;
    margin: 0 0 14px;
}

.bgm-search-more {
    font-size: 0.722em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
}

.bgm-search-more:hover {
    color: #ff91a4;
    border-bottom-color: #ff91a4;
}

.bgm-comment-notice {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 6px;
    background: #fff5f7;
    border: 1px solid #ffd1da;
    color: #6b2d3b;
    font-size: 0.833em;
    line-height: 1.5;
}

@media screen and (max-width: 767px) {
    .bgm-search-card {
        flex-direction: column;
    }
    .bgm-search-thumb {
        width: 100%;
        height: 200px;
    }
    .bgm-search-body {
        padding: 20px;
    }
}

/* Mobile & desktop header search SVG sizing + visibility */
.mobile-header .mobile-site-header .tools {
    width: auto;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.mobile-header .mobile-site-header .tools .header-search {
    display: flex;
    align-items: center;
}

.mobile-header .mobile-site-header .tools .search-icon.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 1;
    visibility: visible;
    color: #000;
}

body.showing-mob-search-modal .mobile-header .mobile-site-header .tools .search-icon.search-toggle {
    opacity: 0;
    visibility: hidden;
}

.header-search .search-icon svg.open-icon,
.header-search .search-icon svg.close-icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.header-search .search-icon.close svg.close-icon {
    fill: #fff;
}

/* Sticky single article header: solid white background + crisp single-line title */
.single-header {
    background: #ffffff !important;
    padding: 12px 5%;
    z-index: 90;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.18s ease, opacity 0.18s ease;
    flex-wrap: nowrap;
}

.single-header .site-branding {
    flex: 0 0 auto;
    max-width: 240px;
}

.single-header .site-branding img.custom-logo {
    max-height: 36px;
    width: auto;
    height: auto;
}

.single-header .title-holder {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
}

.single-header .title-holder span {
    flex: 0 0 auto;
    white-space: nowrap;
}

.single-header .title-holder .post-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid #ebebeb;
    line-height: 1.3;
    font-size: 1.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

.single-header .social-networks {
    flex: 0 0 auto;
}

/* Uniform thumbnail ratio on Recommended Articles */
.recommended-post .post .post-thumbnail img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 20%;
}

/* Remove empty bottom divider space on cards without footer metadata */
.recommended-post .post .bottom:empty,
.blog #primary .site-main article .holder .bottom:empty,
.archive #primary .site-main article .holder .bottom:empty,
.search #primary .site-main article .holder .bottom:empty {
    display: none;
}

.recommended-post .post .top {
    padding-bottom: 22px;
}

@media screen and (max-width: 1024px) {
    .single-header {
        display: none !important;
    }
}
