/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Georgia&display=swap');

:root {
    --primary-color: #2c3e50;
    --accent-color: #d4af37;
    --accent-hover: #b8962e;
    --text-color: #212121;
    --text-muted: #878787;
    --bg-color: #f8f8f8;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --font-heading: 'Open Sans', sans-serif;
    --font-body: Georgia, serif;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
header.site-header {
    background-color: var(--primary-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a:hover {
    color: var(--accent-color);
}

.logo img {
    height: 40px;
    width: auto;
}

nav.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav li.current a {
    color: var(--accent-color);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

/* Layout Grid */
.site-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
    flex: 1;
}

@media (min-width: 992px) {
    .site-content {
        grid-template-columns: 2fr 1fr;
    }
}

/* Articles & Cards */
article.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

article.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.post-thumbnail {
    display: block;
    line-height: 0;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 628;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 1.5rem 2rem 2rem;
}

.post-category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.entry-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--primary-color);
}

.entry-title a:hover {
    color: var(--accent-color);
}

.entry-meta {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.entry-excerpt {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }

.post-meta {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Bible Verses Styling (Premium Blockquote) */
blockquote.bible-verse {
    background-color: #fcfaf2;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #4a5568;
    border-radius: 0 8px 8px 0;
}

blockquote.bible-verse cite {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-top: 0.75rem;
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.widget_search .search-field {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.widget_search .search-submit {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.widget_search .search-submit:hover {
    background: var(--accent-color);
}

/* Search Results Page */
.search-form-page {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2rem;
}

/* Sidebar Widgets */
aside.sidebar .widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

aside.sidebar .widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

aside.sidebar ul {
    list-style: none;
}

aside.sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

aside.sidebar li:last-child {
    border-bottom: none;
}

/* Footer */
footer.site-footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 3rem 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-top: auto;
}

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

footer.site-footer a:hover {
    color: var(--accent-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-about p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #cbd5e0;
    margin-top: 0.5rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    margin-top: 2rem;
    padding-top: 2.0rem;
    text-align: center;
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Article content styles */
.entry-content p {
    margin-bottom: 1.2rem;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 1.8rem;
    line-height: 1.8;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--accent-hover);
}

.entry-content strong {
    color: var(--primary-color);
}

/* Breadcrumb list */
.breadcrumb {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.entry-content th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.entry-content tr:nth-child(even) {
    background: #f7fafc;
}

/* Code blocks */
.entry-content code {
    background: #edf2f7;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.entry-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Print styles */
@media print {
    header.site-header,
    footer.site-footer,
    aside.sidebar,
    .pagination,
    #cookie-consent,
    .menu-toggle,
    .search-form,
    .widget_search,
    .post-category {
        display: none !important;
    }
    .site-content {
        display: block !important;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    blockquote.bible-verse {
        border: 1px solid #ccc;
        background: #f9f9f9;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}.pagination a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    transition: background 0.2s;
}

.pagination a:hover {
    background: var(--accent-color);
    color: #fff;
}

.pagination .page-info {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* AdSense ad slots */
.ad-slot {
    margin: 2rem 0;
    min-height: 90px;
    text-align: center;
    overflow: hidden;
}

.ad-slot ins.adsbygoogle {
    display: block;
    margin: 0 auto;
}

/* Prevent horizontal overflow on any content */
body,
html {
    overflow-x: hidden;
}

.entry-content,
.post-content,
.sidebar,
.main-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Long Bible verses should wrap on small screens */
blockquote.bible-verse {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.2rem; }
    .header-container {
        flex-wrap: wrap;
    }
    .menu-toggle {
        display: block;
    }
    nav.main-nav {
        width: 100%;
        display: none;
        margin-top: 1rem;
    }
    nav.main-nav.active {
        display: block;
    }
    nav.main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    .post-content {
        padding: 1.25rem;
    }
    .pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .ad-slot {
        margin: 1.25rem 0;
        min-height: 60px;
    }
}
