/* ==========================================================
   Site Theme — Auto-generated from database settings.
   Do not edit this file directly; use the admin theme editor.
   ========================================================== */

:root {
    /* Colors */
    --theme-primary: #3b82f6;
    --theme-secondary: #6b7280;
    --theme-accent: #0042aa;
    --theme-bg: #fef7ed;
    --theme-text: #1f2937;
    --theme-link: #3b82f6;

    /* Typography */
    --theme-heading-font: Georgia, 'Times New Roman', Times, serif;
    --theme-body-font: Georgia, 'Times New Roman', Times, serif;
    --theme-base-font-size: 1.000rem;
    --theme-line-height: 1.600;

    /* Heading sizes (computed from base × scale ratio) */
    --theme-h1-size: 3.052rem;
    --theme-h2-size: 2.441rem;
    --theme-h3-size: 1.953rem;
    --theme-h4-size: 1.562rem;
    --theme-h5-size: 1.250rem;
    --theme-h6-size: 1.000rem;

    /* Layout */
    --theme-content-max-width: 1140px;
    --theme-site-margin: 1rem;
    --theme-block-gap: 2rem;

    /* Buttons */
    --theme-btn-radius: 0.375rem;
    --theme-btn-padding-x: 1.5rem;
    --theme-btn-padding-y: 0.5rem;

    /* Header */
    --theme-header-bg: #212529;
    --theme-header-link: #ebebeb;

    /* Footer */
    --theme-footer-bg: #f8f9fa;
    --theme-footer-text: #6b7280;

    /* Bootstrap variable overrides — these make Bootstrap's own
       utility classes (bg-dark, text-muted, btn-primary, etc.)
       pick up the theme colors automatically. */
    --bs-primary: #3b82f6;
    --bs-secondary: #6b7280;
    --bs-body-bg: #fef7ed;
    --bs-body-color: #1f2937;
    --bs-link-color: #3b82f6;
    --bs-link-hover-color: #3b82f6;
    --bs-body-font-family: Georgia, 'Times New Roman', Times, serif;
    --bs-body-font-size: 1.000rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.600;
}

/* ---- Base Typography ---- */

body {
    font-family: var(--theme-body-font);
    font-size: var(--theme-base-font-size);
    font-weight: 400;
    line-height: var(--theme-line-height);
    color: var(--theme-text);
    background-color: var(--theme-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--theme-heading-font);
    color: var(--theme-text);
    margin-bottom: 0.5em;
}

h1 { font-size: var(--theme-h1-size); }
h2 { font-size: var(--theme-h2-size); }
h3 { font-size: var(--theme-h3-size); }
h4 { font-size: var(--theme-h4-size); }
h5 { font-size: var(--theme-h5-size); }
h6 { font-size: var(--theme-h6-size); }

/* ---- Links ---- */

a {
    color: var(--theme-link);
}

a:hover {
    color: var(--theme-link);
    filter: brightness(1.2);
}

/* Don't apply brightness to links that wrap images */
a:has(img):hover {
    filter: none;
}

/* ---- Muted Text ---- */
/* Override Bootstrap's .text-muted to use theme text color at reduced opacity,
   so it remains visible on both light and dark backgrounds. */

.text-muted {
    color: var(--theme-text) !important;
    opacity: 0.55;
}

/* ---- Layout ---- */

.container {
    max-width: var(--theme-content-max-width);
    padding-left: var(--theme-site-margin);
    padding-right: var(--theme-site-margin);
}

.container.my-4 {
    margin-top: var(--theme-block-gap) !important;
    margin-bottom: var(--theme-block-gap) !important;
}

/* ---- Blog Cards ---- */

.blog-card {
    background-color: color-mix(in srgb, var(--theme-text) 8%, var(--theme-bg));
    border-radius: 12px;
    color: var(--theme-text);
    transition: transform 0.15s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
}

.blog-card h4 {
    color: var(--theme-text);
}

.blog-card p, .blog-card div {
    color: var(--theme-text);
}

.blog-card-thumb {
    float: right;
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 12px;
    margin-bottom: 8px;
}

.blog-card-category {
    margin-bottom: 0;
}

.blog-card-date {
    clear: both;
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 8px;
}

/* ---- Buttons ---- */

.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    border-radius: var(--theme-btn-radius);
    padding: var(--theme-btn-padding-y) var(--theme-btn-padding-x);
}

.btn-primary:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
    border-radius: var(--theme-btn-radius);
    padding: var(--theme-btn-padding-y) var(--theme-btn-padding-x);
}

.btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
    border-radius: var(--theme-btn-radius);
    padding: var(--theme-btn-padding-y) var(--theme-btn-padding-x);
}

.btn-outline-primary:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

/* ---- Header / Navbar ---- */

.site-header {
    background-color: var(--theme-header-bg) !important;
    position: sticky;
        top: 0;
        z-index: 1030;
}

.site-header a,
.site-header .nav-grid-btn {
    color: var(--theme-header-link) !important;
}

.site-header a:hover,
.site-header .nav-grid-btn:hover {
    color: var(--theme-header-link) !important;
    filter: brightness(1.2);
}

/* ---- Social Media Icons ---- */

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-header-link);
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.social-icon:hover {
    color: var(--theme-header-link);
    opacity: 1;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}



/* ---- Footer ---- */

footer {
    background-color: var(--theme-footer-bg) !important;
    color: var(--theme-footer-text);
}

footer .text-muted {
    color: var(--theme-footer-text) !important;
}



/* ---- Content ---- */

.post-content img, .page-content img {
    max-width: 100%;
    height: auto;
}

.post-content, .page-content {
    line-height: var(--theme-line-height);
}

/* ---- Responsive Video Embeds ---- */

/* Wrapper produced by TinyMCE's media plugin for embedded videos.
   Uses intrinsic aspect-ratio so the iframe scales responsively. */
.post-content iframe,
.page-content iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 1em auto;
}

/* ---- Responsive Overrides ---- */

/* Tablet: slightly reduce large headings for medium screens */
@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --theme-h1-size: 2.747rem;
        --theme-h2-size: 2.197rem;
    }
}

/* Phone: scale down headings, tighten spacing for small screens */
@media (max-width: 767.98px) {
    :root {
        --theme-h1-size: 2.289rem;
        --theme-h2-size: 1.953rem;
        --theme-h3-size: 1.660rem;
        --theme-h4-size: 1.406rem;
        --theme-site-margin: 0.75rem;
        --theme-block-gap: 1.5rem;
    }

    /* Prevent long words/URLs from overflowing content area */
    .post-content, .page-content {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

/* ---- Dark Mode ---- */
/* Auto-generated from the theme's dark mode color settings.
   Applied when the visitor's device prefers dark color scheme. */

@media (prefers-color-scheme: dark) {
    :root {
        --theme-bg: #282015;
        --theme-text: #d2d8df;
        --theme-link: #89a8dc;
        --theme-header-bg: #121417;
        --theme-header-link: #e5dcdc;
        --theme-accent: #709adb;
        --theme-footer-bg: #111418;
        --theme-footer-text: #8a94a8;

        --bs-body-bg: #282015;
        --bs-body-color: #d2d8df;
        --bs-link-color: #89a8dc;
        --bs-link-hover-color: #89a8dc;
    }

    body {
        background-color: var(--theme-bg);
        color: var(--theme-text);
    }

    h1, h2, h3, h4, h5, h6 {
        color: var(--theme-text);
    }

    a {
        color: var(--theme-link);
    }

    a:hover {
        color: var(--theme-link);
    }

    .text-muted {
        color: var(--theme-text) !important;
        opacity: 0.55;
    }

    .lead {
        color: var(--theme-text);
    }

    .site-header {
        background-color: var(--theme-header-bg) !important;
    }

    .site-header a,
    .site-header .nav-grid-btn {
        color: var(--theme-header-link) !important;
    }

    .site-header a:hover,
    .site-header .nav-grid-btn:hover {
        color: var(--theme-header-link) !important;
    }

    .social-icon {
        color: var(--theme-header-link);
    }

    .social-icon:hover {
        color: var(--theme-header-link);
    }

    footer {
        background-color: var(--theme-footer-bg) !important;
        color: var(--theme-footer-text);
    }

    footer .text-muted {
        color: var(--theme-footer-text) !important;
    }

    .blog-card {
        background-color: color-mix(in srgb, #d2d8df 8%, #282015);
        color: var(--theme-text);
    }

    .blog-card h4,
    .blog-card p,
    .blog-card div {
        color: var(--theme-text);
    }

    blockquote {
        background: color-mix(in srgb, #d2d8df 5%, #282015);
    }
}

