html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}
*,
:after,
:before {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-block-start: 0.5rem;
    margin-block-end: 1rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}
h1 {
    font-size: 2.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.75rem;
}
h4 {
    font-size: 1.5rem;
}
h5 {
    font-size: 1.25rem;
}
h6 {
    font-size: 1rem;
}
p {
    margin-block-start: 0;
    margin-block-end: 0;
}
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}
pre {
    font-family: monospace, monospace;
    font-size: 1em;
    white-space: pre-wrap;
}

abbr[title] {
    border-block-end: none;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}
b,
strong {
    font-weight: bolder;
}
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}
small {
    font-size: 80%;
}
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sub {
    bottom: -0.25em;
}
sup {
    top: -0.5em;
}
img {
    border-style: none;
    height: auto;
    max-width: 100%;
}
details {
    display: block;
}
summary {
    display: list-item;
}
figcaption {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    font-style: italic;
    font-weight: 400;
}
[hidden],
template {
    display: none;
}
@media print {
    *,
    :after,
    :before {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a,
    a:visited {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
    pre {
        white-space: pre-wrap !important;
    }
    blockquote,
    pre {
        -moz-column-break-inside: avoid;
        break-inside: avoid;
        border: 1px solid #ccc;
    }
    thead {
        display: table-header-group;
    }
    img,
    tr {
        -moz-column-break-inside: avoid;
        break-inside: avoid;
    }
    h2,
    h3,
    p {
        orphans: 3;
        widows: 3;
    }
    h2,
    h3 {
        -moz-column-break-after: avoid;
        break-after: avoid;
    }
}
label {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select,
textarea {
    width: 100%;
    border: 1px solid #666;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}
input[type="date"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    border-color: #333;
}
button,
input {
    overflow: visible;
}
button,
select {
    text-transform: none;
}
[type="button"],
[type="reset"],
[type="submit"],
button {
    width: auto;
    -webkit-appearance: button;
}
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner,
button::-moz-focus-inner {
    border-style: none;
    padding: 0;
}
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring,
button:-moz-focusring {
    outline: 1px dotted ButtonText;
}
[type="button"],
[type="submit"],
button {
    display: inline-block;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: #0f3978;
    border: 1px solid #0f3978;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 3px;
    transition: all 0.3s;
}
[type="button"]:focus,
[type="submit"]:focus,
button:focus {
    outline: 5px auto -webkit-focus-ring-color;
}
[type="button"]:focus,
[type="button"]:hover,
[type="submit"]:focus,
[type="submit"]:hover,
button:focus,
button:hover {
    color: #fff;
    background-color: #8c1c03;
    text-decoration: none;
}
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled) {
    cursor: pointer;
}
fieldset {
    padding: 0.35em 0.75em 0.625em;
}
legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}
progress {
    vertical-align: baseline;
}
textarea {
    overflow: auto;
    resize: vertical;
}
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}
[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}
::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}
select {
    display: block;
}
table {
    background-color: transparent;
    width: 100%;
    margin-block-end: 15px;
    font-size: 0.9em;
    border-spacing: 0;
    border-collapse: collapse;
}
table td,
table th {
    padding: 15px;
    line-height: 1.5;
    vertical-align: top;
    border: 1px solid hsla(0, 0%, 50.2%, 0.5019607843);
}
table th {
    font-weight: 700;
}
table tfoot th,
table thead th {
    font-size: 1em;
}
table caption + thead tr:first-child td,
table caption + thead tr:first-child th,
table colgroup + thead tr:first-child td,
table colgroup + thead tr:first-child th,
table thead:first-child tr:first-child td,
table thead:first-child tr:first-child th {
    border-block-start: 1px solid hsla(0, 0%, 50.2%, 0.5019607843);
}
table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
    background-color: hsla(0, 0%, 50.2%, 0.0705882353);
}
table tbody tr:hover > td,
table tbody tr:hover > th {
    background-color: hsla(0, 0%, 50.2%, 0.1019607843);
}
table tbody + tbody {
    border-block-start: 2px solid hsla(0, 0%, 50.2%, 0.5019607843);
}
@media (max-width: 767px) {
    table table {
        font-size: 0.8em;
    }
    table table td,
    table table th {
        padding: 7px;
        line-height: 1.3;
    }
    table table th {
        font-weight: 400;
    }
}
dd,
dl,
dt,
li,
ol,
ul {
    margin-block-start: 0;
    margin-block-end: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

.error-404 {
    text-align: center;
    padding: 50px;
}

.error-404 .page-title {
    font-size: 32px;
    color: #0076ac;
}

.error-404 .page-content {
    font-size: 18px;
    margin-top: 20px;
}

.error-404 a {
    color: #0073aa;
    text-decoration: none;
}

.error-404 a:hover {
    text-decoration: underline;
}

.search-results .search-result-item {
    margin-bottom: 30px;
}

.search-results .search-result-title a {
font-size: 20px;
  color: #5a1c03;
  text-decoration: none;
  font-weight: bold;
}

.search-results .search-result-title a:hover {
    text-decoration: underline;
}

.search-results .search-result-excerpt {
    font-size: 1rem;
    color: #555;
}

.search-results p {
    font-size: 14px;
    color: #555;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .page-numbers {
    padding: 10px 15px;
    border: 1px solid #ddd;
    margin: 0 5px;
    text-decoration: none;
}

.pagination .page-numbers.current {
    background-color: #007bff;
    color: #fff;
}

code {
    font-family: 'Courier New', monospace;
    background-color: #ececec;
    padding: 2px 4px;
    border-radius: 4px;
    color: #d63384;
    font-size: 1rem;
}

.code_tag_wrap pre[class*="language-"].theme-twilight {
  height: 400px;
  overflow-x: hidden !important;
}



/* Previous additions for search.php and 404.php */
.search-results {
    margin: 2rem 0;
}

.search-result-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.search-result-thumbnail img {
    max-width: 150px;
    height: auto;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.search-result-excerpt {
    color: #666;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #CC3366;
    border-radius: 3px;
    color: #CC3366;
    text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #CC3366;
    color: #fff;
}

.no-results {
    text-align: center;
    margin: 2rem 0;
}

.back-to-home .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #CC3366;
    border-radius: 3px;
    color: #CC3366;
    text-decoration: none;
}

.back-to-home .button:hover {
    background-color: #CC3366;
    color: #fff;
}

/* New styles for archive.php */
.archive-results {
    margin: 2rem 0;
}

.archive-result-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.archive-result-thumbnail img {
    max-width: 150px;
    height: auto;
}

.archive-result-content {
    flex: 1;
}

/* New styles for single.php */
.single-content {
    margin: 2rem 0;
}

.single-thumbnail img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.single-content-inner {
    margin-bottom: 1rem;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-tags {
    margin-top: 1rem;
}
