/*
Theme Name: Bob4God Blue Horizon
Theme URI: https://bob4god.com/
Author: Bob4God
Description: A clean, classic WordPress theme with a modernized traditional blog layout, blue styling, an optional scenic header image, right sidebar, and minimal JavaScript.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: bob4god-blue-horizon
*/

:root {
    --b4g-blue-900: #153a5b;
    --b4g-blue-800: #1d4f78;
    --b4g-blue-700: #28668f;
    --b4g-blue-100: #eaf3f8;
    --b4g-blue-050: #f6fafc;
    --b4g-ink: #24313a;
    --b4g-muted: #6a7a86;
    --b4g-line: #d8e2e8;
    --b4g-card: #ffffff;
    --b4g-shadow: 0 8px 24px rgba(19, 53, 81, 0.09);
    --b4g-radius: 8px;
    --b4g-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--b4g-ink);
    background: #edf4f8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.68;
}

a {
    color: #1f5f8a;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover,
a:focus {
    color: #103e60;
}

img {
    max-width: 100%;
    height: auto;
}

.site-shell {
    width: min(var(--b4g-width), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(17, 54, 83, 0.62), rgba(17, 54, 83, 0.72)),
        linear-gradient(135deg, #3f86ad 0%, #8fbccf 48%, #d9e9ef 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

.site-header.has-header-image {
    min-height: 285px;
}

.header-overlay {
    min-height: 285px;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.site-branding {
    max-width: 780px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.site-title {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-description {
    margin: 14px 0 0;
    max-width: 680px;
    color: #f4f9fc;
    font-size: 1.22rem;
    line-height: 1.45;
}

.custom-logo-link {
    display: inline-block;
    margin-bottom: 18px;
}

.custom-logo {
    max-height: 90px;
    width: auto;
}

.main-navigation {
    background: var(--b4g-blue-900);
    border-bottom: 3px solid #8fbfd7;
    font-family: Arial, Helvetica, sans-serif;
}

.main-navigation .site-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    margin: 10px 0;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 5px;
    color: #fff;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.primary-menu,
.primary-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu {
    display: flex;
    flex-wrap: wrap;
}

.primary-menu > li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 14px 17px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    background: rgba(255,255,255,0.12);
}

.primary-menu ul {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: -999em;
    min-width: 210px;
    background: var(--b4g-blue-900);
    box-shadow: var(--b4g-shadow);
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
    left: 0;
}

.primary-menu ul a {
    padding: 10px 14px;
}

.content-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    padding: 34px 0 46px;
}

.site-main {
    min-width: 0;
}

.post-card,
.page-card,
.archive-header,
.not-found-card {
    margin-bottom: 26px;
    padding: 30px 34px;
    background: var(--b4g-card);
    border: 1px solid var(--b4g-line);
    border-radius: var(--b4g-radius);
    box-shadow: var(--b4g-shadow);
}

.entry-title,
.page-title {
    margin: 0 0 8px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--b4g-blue-900);
    line-height: 1.2;
}

.entry-title {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
    color: var(--b4g-blue-700);
}

.entry-meta,
.entry-footer {
    color: var(--b4g-muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
}

.entry-meta {
    margin-bottom: 20px;
}

.entry-content > :first-child,
.entry-summary > :first-child {
    margin-top: 0;
}

.entry-content > :last-child,
.entry-summary > :last-child {
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--b4g-blue-900);
    line-height: 1.25;
}

.entry-content blockquote {
    margin: 1.5em 0;
    padding: 8px 22px;
    border-left: 4px solid #7eb0ca;
    background: var(--b4g-blue-050);
    color: #415664;
}

.post-thumbnail {
    margin: 0 0 22px;
}

.post-thumbnail img {
    display: block;
    border-radius: 6px;
}

.read-more {
    display: inline-block;
    margin-top: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.entry-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--b4g-line);
}

.entry-footer span + span::before {
    content: " · ";
    color: #9aa8b0;
}

.sidebar {
    min-width: 0;
}

.widget {
    margin-bottom: 22px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--b4g-line);
    border-radius: var(--b4g-radius);
    box-shadow: var(--b4g-shadow);
}

.widget-title {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #a9cada;
    color: var(--b4g-blue-900);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.08rem;
}

.widget ul {
    margin: 0;
    padding-left: 19px;
}

.widget li {
    margin: 5px 0;
}

.search-form {
    display: flex;
    gap: 7px;
}

.search-field {
    min-width: 0;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #b8c7d1;
    border-radius: 4px;
    font: inherit;
}

.search-submit,
button,
input[type="submit"] {
    padding: 9px 14px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: var(--b4g-blue-800);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.search-submit:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--b4g-blue-900);
}

.navigation.pagination,
.post-navigation {
    margin: 24px 0;
    font-family: Arial, Helvetica, sans-serif;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-numbers,
.post-navigation a {
    display: inline-block;
    padding: 8px 11px;
    border: 1px solid #c7d6df;
    border-radius: 4px;
    background: #fff;
    text-decoration: none;
}

.page-numbers.current {
    color: #fff;
    background: var(--b4g-blue-800);
    border-color: var(--b4g-blue-800);
}

.comments-area {
    margin-top: 28px;
    padding: 28px 34px;
    background: #fff;
    border: 1px solid var(--b4g-line);
    border-radius: var(--b4g-radius);
    box-shadow: var(--b4g-shadow);
}

.comments-title,
.comment-reply-title {
    color: var(--b4g-blue-900);
    font-family: Arial, Helvetica, sans-serif;
}

.comment-list {
    padding-left: 24px;
}

.comment-body {
    margin-bottom: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bcc9d1;
    border-radius: 4px;
    font: inherit;
}

.site-footer {
    padding: 24px 0;
    color: #dce9f0;
    background: #12334f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer a {
    color: #fff;
}

.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption,
.gallery-caption {
    max-width: 100%;
    color: var(--b4g-muted);
    font-size: 0.9rem;
}

.sticky {
    border-top: 4px solid #6fa7c4;
}

.bypostauthor {
    outline: 1px solid rgba(39, 100, 141, 0.16);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .content-wrap {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .widget {
        margin-bottom: 0;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 16px;
    }

    .site-shell {
        width: min(100% - 22px, var(--b4g-width));
    }

    .header-overlay {
        min-height: 220px;
        padding: 34px 0;
    }

    .site-header.has-header-image {
        min-height: 220px;
    }

    .main-navigation .site-shell {
        display: block;
    }

    .menu-toggle {
        display: inline-block;
    }

    .primary-menu {
        display: none;
        width: 100%;
        padding-bottom: 8px;
    }

    .primary-menu.is-open {
        display: block;
    }

    .primary-menu > li {
        width: 100%;
    }

    .primary-menu ul {
        position: static;
        display: block;
        min-width: 0;
        margin-left: 16px;
        background: transparent;
        box-shadow: none;
    }

    .post-card,
    .page-card,
    .archive-header,
    .not-found-card,
    .comments-area {
        padding: 22px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 1em auto;
    }
}


/* Front-page memorial introduction */
.memorial-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    margin-bottom: 28px;
    padding: 30px 34px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%);
    border: 1px solid var(--b4g-line);
    border-left: 5px solid #5d96b5;
    border-radius: var(--b4g-radius);
    box-shadow: var(--b4g-shadow);
}

.memorial-photo {
    width: 150px;
}

.memorial-photo img {
    display: block;
    width: 150px;
    height: auto;
    max-height: 210px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #c7d8e2;
}

.memorial-title {
    margin: 0 0 10px;
    color: var(--b4g-blue-900);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
}

.memorial-text p {
    margin: 0 0 0.85em;
}

.memorial-text p:last-child {
    margin-bottom: 0;
}

.memorial-placeholder {
    margin: 0;
    color: var(--b4g-muted);
    font-style: italic;
}

@media (max-width: 620px) {
    .memorial-intro {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .memorial-photo {
        width: 120px;
    }

    .memorial-photo img {
        width: 120px;
        max-height: 170px;
    }
}


.page-feature-image {
    margin: -30px -34px 26px;
    overflow: hidden;
    border-radius: var(--b4g-radius) var(--b4g-radius) 0 0;
}

.page-feature-image img {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

@media (max-width: 700px) {
    .page-feature-image {
        margin: -22px -22px 22px;
    }
}
