:root {
    --gap: 24px;
    --content-gap: 20px;
    --nav-width: 1024px;
    --main-width: 820px;
    --header-height: 90px;
    --footer-height: 90px;
    --radius: 8px;
    --theme: rgb(255, 255, 255);
    --entry: rgb(255, 255, 255);
    --primary: rgb(30, 30, 30);
    --secondary: rgb(108, 108, 108);
    --tertiary: rgb(214, 214, 214);
    --content: rgb(31, 31, 31);
    --hljs-bg: rgb(28, 29, 33);
    --code-bg: rgb(255, 255, 255);
    --border: rgb(238, 238, 238);
}

.dark {
    --theme: rgb(29, 30, 32);
    --entry: rgb(46, 46, 51);
    --primary: rgb(218, 218, 219);
    --secondary: rgb(155, 156, 157);
    --tertiary: rgb(65, 66, 68);
    --content: rgb(196, 196, 197);
    --hljs-bg: rgb(46, 46, 51);
    --code-bg: rgb(55, 56, 62);
    --border: rgb(51, 51, 51);
}

.list {
    background: var(--code-bg);
}

.dark.list {
    background: var(--theme);
}
*,
::after,
::before {
    box-sizing: border-box;
}

html {
    -webkit-tap-highlight-color: transparent;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
         text-size-adjust: 100%;
}

a,
button,
body,
h1,
h2,
h3,
h4 {
    color: var(--primary);
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    word-break: break-word;
    background: var(--theme);
}

article,
figcaption,
figure,
footer,
header,
main,
nav,
section {
    display: block;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
    margin-bottom: 0;
}

ul {
    padding: 0;
}

a {
    text-decoration: none;
}

body,
figure,
ul {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    overflow-x: auto;
    word-break: keep-all;
    border: 1px solid #000;
}

 td {
    border: 1px solid #000;
    padding: 8px;
}

button,
input,
textarea {
    padding: 0;
    font: inherit;
    background: 0 0;
    border: 0;
}

input,
textarea {
    outline: 0;
}

button,
input[type=button],
input[type=submit] {
    cursor: pointer;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
    box-shadow: 0 0 0 50px var(--theme) inset;
}

img {
    display: block;
    max-width: 100%;
}
@media screen and (max-width: 768px) {
    /* theme-vars */
    :root {
        --gap: 14px;
    }

    /* profile-mode */
    .profile img {
        transform: scale(0.85);
    }

    /* post-entry */
    .first-entry {
        min-height: 260px;
    }

    /* archive */
    .archive-month {
        flex-direction: column;
    }

    .archive-year {
        margin-top: 20px;
    }

    /* footer */
    .footer {
        padding: calc((var(--footer-height) - var(--gap) - 10px) / 2) var(--gap);
    }
}

/* footer */
@media screen and (max-width: 900px) {
    .list .top-link {
        transform: translateY(-5rem);
    }
}

@media screen and (max-width: 340px) {
    .share-buttons {
        justify-content: unset;
    }
}

@media (prefers-reduced-motion) {
    /* terms; profile-mode; post-single; post-entry; post-entry; search; search */
    .terms-tags a:active,
    .button:active,
    .post-entry:active,
    .top-link,
    #searchResults .focus,
    #searchResults li:active {
        transform: none;
    }
}
.not-found {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
    font-size: 160px;
    font-weight: 700;
}
.archive-posts {
    width: 100%;
    font-size: 16px;
}

.archive-year {
    margin-top: 40px;
}

.archive-year:not(:last-of-type) {
    border-bottom: 2px solid var(--border);
}

.archive-month {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
}

.archive-month-header {
    margin: 25px 0;
    width: 200px;
}

.archive-month:not(:last-of-type) {
    border-bottom: 1px solid var(--border);
}

.archive-entry {
    position: relative;
    padding: 5px;
    margin: 10px 0;
}

.archive-entry-title {
    margin: 5px 0;
    font-weight: 400;
}

.archive-count,
.archive-meta {
    color: var(--secondary);
    font-size: 14px;
}
.footer,
.top-link {
    font-size: 12px;
    color: var(--secondary);
}

.footer {
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding: calc((var(--footer-height) - var(--gap)) / 2) var(--gap);
    text-align: center;
    line-height: 24px;
}

.footer span {
    margin-inline-start: 1px;
    margin-inline-end: 1px;
}

.footer span:last-child {
    white-space: nowrap;
}

.footer a {
    color: inherit;
    border-bottom: 1px solid var(--secondary);
}

.footer a:hover {
    border-bottom: 1px solid var(--primary);
}

.top-link {
    visibility: hidden;
    position: fixed;
    bottom: 60px;
    right: 30px;
    z-index: 99;
    background: var(--tertiary);
    width: 42px;
    height: 42px;
    padding: 12px;
    border-radius: 64px;
    transition: visibility 0.5s, opacity 0.8s linear;
}

.top-link,
.top-link svg {
    filter: drop-shadow(0px 0px 0px var(--theme));
}

.footer a:hover,
.top-link:hover {
    color: var(--primary);
}

.top-link:focus {
    outline: 0;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: calc(var(--nav-width) + var(--gap) * 2);
    margin-inline-start: auto;
    margin-inline-end: auto;
    line-height: var(--header-height);
}

.nav a {
    display: block;
}

.logo,
#menu {
    display: flex;
    margin: auto var(--gap);
}

.logo {
    flex-wrap: inherit;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
}

.logo a img, .logo a svg {
    display: inline;
    vertical-align: middle;
    pointer-events: none;
    transform: none; /* Center vertically with align-items */
    border-radius: 6px;
    margin-inline-end: 8px;
}

#menu {
    list-style: none;
    word-break: keep-all;
    overflow-x: auto;
    white-space: nowrap;
}

#menu li + li {
    margin-inline-start: var(--gap);
}

#menu a {
    font-size: 16px;
}

#menu .active {
    font-weight: 500;
    border-bottom: 2px solid currentColor;
}

.lang-switch li,
.lang-switch ul,
.logo-switches {
    display: inline-flex;
    margin: auto 4px;
}

.lang-switch {
    display: flex;
    flex-wrap: inherit;
}

.lang-switch a {
    margin: auto 3px;
    font-size: 16px;
    font-weight: 500;
}

.logo-switches {
    flex-wrap: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.navbar-one {
    display: flex;
    justify-content: space-between;
    padding: 0 20px; /* Reduce padding for mobile */
    width: 100%;
    max-width: 1024px; /* Set the maximum width */
    margin: 0 auto; /* Center the navbar within the maximum width */
    background-color: #7590F9;
    color: black; /* Change text color to a color with better contrast */
    cursor: pointer;
    font-size: 14px; /* Adjust the font size as needed */
}


.flex {
    display: flex;
}

.left > div + div {
    margin-left: 20px; /* Reduce the left margin for mobile */
}

.right > div {
    margin-right: 20px; /* Reduce the right margin for mobile */
}

.left > div:first-child {
    margin-left: 20px; /* Add extra space on the left of the email */
}

.right > div:last-child {
    margin-right: 20px; /* Add extra space on the right of Facebook */
}


.left.flex a {
    text-decoration: none; /* Remove the underline */
    color: inherit; /* Inherit the color from the parent element */
}

.left.flex a:hover {
    color: white; /* Inherit the color from the parent element on hover */
}

.right.flex a {
    text-decoration: none; /* Remove the underline */
    color: inherit; /* Inherit the color from the parent element */
}

.right.flex a:hover {
    color: white; /* Inherit the color from the parent element on hover */
}


/* Media Query for mobile screens (scoped to upper blue bar) */
@media (max-width: 768px) {
    .navbar-one { padding: 6px 12px; flex-direction: column; align-items: center; gap: 8px; }

    /* Put socials above contacts */
    .navbar-one .right { 
        order: -1; 
        display: flex; 
        flex-direction: row; 
        gap: 16px; 
        justify-content: center; 
        align-items: center;
        width: 100%;
    }

    /* Contacts row below (email + phone) */
    .navbar-one .left { 
        display: flex; 
        flex-direction: column; 
        gap: 8px; 
        justify-content: center; 
        align-items: center;
        width: 100%;
    }

    /* Reset margins for compact stacking */
    .navbar-one .left > div,
    .navbar-one .right > div {
        margin: 0;
    }
}

.icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.left a, .right a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* ===== Mobile hamburger + drawer (CSS-only) ===== */

/* Hide default summary marker */
.hamburger::-webkit-details-marker { display: none; }

.hamburger {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

/* Checkbox-driven state */
#nav-toggle:checked + .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle:checked + .hamburger span:nth-child(2) { opacity: 0; }
#nav-toggle:checked + .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop controlled by checkbox */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1000;
}
#nav-toggle:checked ~ .backdrop { opacity: 1; pointer-events: auto; }

/* Drawer open via checkbox */
#nav-toggle:checked ~ .mobile-drawer { 
    transform: translateX(0);
    box-shadow: -2px 0 12px rgba(0,0,0,.15); /* apply shadow only when open */
}

/* Scroll lock when open */
body:has(#nav-toggle:checked) { overflow: hidden; }

/* Morph to "X" when open */

/* Off-canvas drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80vw;
    max-width: 380px;
    background: #fff;
    color: inherit;
    box-shadow: none; /* no shadow when closed to avoid right-edge artifact */
    transform: translateX(100%);
    transition: transform .25s ease;
    padding: 16px 14px; /* Slightly reduced padding to reduce perceived gaps */
    z-index: 1001;
    overflow-y: auto;
}

/* kept for backwards compatibility; checkbox rule above drives open state */
/* .mobile-nav[open] .mobile-drawer { transform: translateX(0); } */

/* Overlay now provided by .backdrop label tied to #nav-toggle */

/* Prevent background scroll in supporting browsers */
/* body:has(.mobile-nav[open]) { overflow: hidden; } now superseded by checkbox rule */
body:has(#nav-toggle:checked) { overflow: hidden; }

/* Vertical list inside drawer */
#mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0; /* Tighter spacing */
}
#mobile-menu li a {
    display: block;
    padding: 10px 12px; /* Compact touch target */
    font-size: 18px;
    text-decoration: none;
    color: inherit;
}
#mobile-menu .active {
    font-weight: 600;
    border-bottom: 0;
}

/* Close button inside drawer */
.close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 28px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

/* Responsive switches */
@media (min-width: 1025px) {
    .hamburger { display: none; }
    .mobile-drawer, .backdrop { display: none; } /* hide off-canvas elements on desktop */
}
@media (max-width: 1024px) {
    .hamburger { display: inline-flex; margin: auto var(--gap); }
    #menu { display: none; }
}
.container {
    display: flex; /* Use flex display */
    justify-content: center; /* Horizontally centers flex items */
}

.box {
    width: 30%; /* Adjust the width as needed */
    padding: 5px;
    border: 0px solid #ccc;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.box img {
    display: block;
    width: 100px; /* Set the width of the image */
    height: 100px; /* Set the height of the image */
}


/* Style the checklist items */
.checklist-item {
    display: flex;
    align-items: center;
}



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

.left-box {
    flex: 3;
    padding: 0;
}

.right-box {
    flex: 5;
    padding: 0;
}


.text-field {
    order: 2; /* Move text field below the image on mobile */
    padding: 0px;
    margin-right: 5px;
}

.image-field {
    order: 1; /* Move image field above the text on mobile */
    text-align: center; /* Center align image on mobile */
}
.image-field img {
    max-width: 100%; /* Ensures the image does not exceed the container width */
    height: auto;
}

/* Media query for screens larger than mobile */
@media (min-width: 768px) {
    .main-container {
        flex-direction: row; /* Revert to row layout on larger screens */
    }

    .text-field {
        order: 1; /* Revert order for larger screens */
    }

    .image-field {
        order: 2; /* Revert order for larger screens */
        text-align: right; /* Revert text alignment for larger screens */
        min-width: 35%;
    }
}

/* Media Query for mobile screens */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column; /* Stack boxes vertically on smaller screens */
    }

    .left-box, .right-box {
        flex: none; /* Reset the flex property for both boxes */
        width: 100%; /* Make them take the full width of the container */
    }
}


/* Style the CTA button */
.cta-button {
    text-align: left;
    margin-top: 20px; /* Add margin as needed */
}

.cta-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #7590F9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: normal;
}

.cta-link:hover {
    background-color: #4564C4; /* Change color on hover, if desired */
}

/* Style the form container */
.styled-form {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #7590F9;
    border-radius: 3px;
}

/* Style form fields */
.styled-form input,
.styled-form textarea {
    width: 100%;
    padding: 3px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s, background-color 0.3s; /* Add smooth transition effect */
}

/* Add focus styles for form fields */
.styled-form input:focus,
.styled-form textarea:focus {
    border-color: #7590F9; /* Change border color when focused */
    background-color: #f0f0f0; /* Change background color when focused */
    cursor: text; /* Change cursor style to text when focused */
}

/* Center the submit button */
.styled-form button {
    background-color: #7590F9; /* Blue color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 auto; /* Center the button horizontally */
    display: block; /* Ensure the button takes the full width of its container */
}

.styled-form button:hover {
    background-color: #4564C4; /* Darker blue on hover */
}

/* Prevent the "Message" textarea from being resized or dragged */
textarea#contact-form-message {
    resize: none; /* Disable resizing */
    overflow: hidden; /* Prevent scrollbars */
}


/* CTA button in articles*/
.cta-button-article {
    text-align: left;
    margin-top: 20px; /* Add margin as needed */
}

.cta-link-article {
    display: inline-block;
    padding: 10px 20px;
    background-color: #7590F9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: normal;
}

.cta-button-article {
    text-align: center;
}

.cta-link-article {
    display: inline-block;
    /* Add any additional styling for the button */
}

/* Change the color for all <a> links on hover, except the ones in .navbar-one, .header, .footer, .cta-button-article, and .cta-button */
body a:not(.navbar-one a):not(.header a):not(.footer a):not(.cta-button-article a):not(.cta-button a) {
    color: #3344dd; /* Change to the desired default color */
    transition: color 0.3s; /* Add a smooth color transition on hover */
}

/* Change the color on hover */
body a:not(.navbar-one a):not(.header a):not(.footer a):not(.cta-button-article a):not(.cta-button a):hover {
    color: #7590F9; /* Change to the desired hover color */
}


.checkmark {
    width: 22px; /* Set the desired width for the icon */
    height: 22px; /* Set the desired height for the icon */
}
.main {
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding: var(--gap);
}

.page-header h1 {
    font-size: 40px;
}

.pagination {
    display: flex;
}

.pagination a {
    color: var(--theme);
    font-size: 13px;
    line-height: 36px;
    background: var(--primary);
    border-radius: calc(36px / 2);
    padding: 0 16px;
}

.pagination .next {
    margin-inline-start: auto;
}


.social-icons a {
    display: inline-flex;
    padding: 10px;
}

.social-icons a svg {
    height: 26px;
    width: 26px;
}

code {
    direction: ltr;
}
.first-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    margin: var(--gap) 0 calc(var(--gap) * 2) 0;
}

.first-entry .entry-header {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.first-entry .entry-header h1 {
    font-size: 34px;
    line-height: 1.3;
}

.first-entry .entry-content {
    margin: 14px 0;
    font-size: 16px;
    -webkit-line-clamp: 3;
}

.first-entry .entry-footer {
    font-size: 14px;
}

.home-info .entry-content {
    -webkit-line-clamp: unset;
}

.post-entry {
    position: relative;
    margin-bottom: var(--gap);
    padding: var(--gap);
    background: var(--entry);
    border-radius: var(--radius);
    transition: transform 0.1s;
    border: 1px solid var(--border);
}

.post-entry:active {
    transform: scale(0.96);
}

.tag-entry .entry-cover {
    display: none;
}

.entry-header h2 {
    font-size: 24px;
    line-height: 1.3;
}

.entry-content {
    margin: 8px 0;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.entry-footer {
    color: var(--secondary);
    font-size: 13px;
}

.entry-link {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.entry-hint {
    color: var(--secondary);
}

.entry-hint-parent {
    display: flex;
    justify-content: space-between;
}

.entry-cover {
    font-size: 14px;
    margin-bottom: var(--gap);
    text-align: center;
}

.entry-cover img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
}

.entry-cover a {
    color: var(--secondary);
    box-shadow: 0 1px 0 var(--primary);
}
.page-header,
.post-header {
    margin: 24px auto var(--content-gap) auto;
}

.post-title {
    margin-bottom: 2px;
    font-size: 40px;
}

.post-description {
    margin-top: 10px;
    margin-bottom: 5px;
}

.post-meta,
.breadcrumbs {
    color: var(--secondary);
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
}

.post-meta .i18n_list li {
    display: inline-flex;
    list-style: none;
    margin: auto 3px;
    box-shadow: 0 1px 0 var(--secondary);
}

.breadcrumbs a {
    font-size: 16px;
}

.post-content {
    color: var(--content);
}

.post-content h3,
.post-content h4 {
    margin: 24px 0 16px;
}

.post-content h1 {
    margin: 40px auto 32px;
    font-size: 40px;
}

.post-content h2 {
    margin: 32px auto 24px;
    font-size: 32px;
}

.post-content h3 {
    font-size: 24px;
}

.post-content h4 {
    font-size: 16px;
}

.post-content a,
.toc a:hover {
    box-shadow: 0 1px 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.post-content a code {
    margin: auto 0;
    border-radius: 0;
    box-shadow: 0 -1px 0 var(--primary) inset;
}


.post-content ol,
.post-content p,
.post-content figure,
.post-content ul {
    margin-bottom: var(--content-gap);
}

.post-content ol,
.post-content ul {
    padding-inline-start: 20px;
}

.post-content li {
    margin-top: 5px;
}

.post-content li p {
    margin-bottom: 0;
}



.post-content code {
    margin: auto 4px;
    padding: 4px 6px;
    font-size: 0.78em;
    line-height: 1.5;
    background: var(--code-bg);
    border-radius: 2px;
}

.post-content iframe {
    max-width: 100%;
}

.post-content img {
    border-radius: 4px;
    margin: 1rem 0;
}

.post-content figure.align-center {
    text-align: center;
}

.post-content figure > figcaption {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
    margin: 8px 0 16px;
}

.post-content figure > figcaption > p {
    color: var(--secondary);
    font-size: 14px;
    font-weight: normal;
}

.toc {
    margin: 0 2px 40px 2px;
    border: 1px solid var(--border);
    background: var(--code-bg);
    border-radius: var(--radius);
    padding: 0.4em;
}

.dark .toc {
    background: var(--entry);
}

.toc details summary {
    cursor: zoom-in;
    margin-inline-start: 20px;
}

.toc details[open] summary {
    cursor: zoom-out;
}

.toc .details {
    display: inline;
    font-weight: 500;
}

.toc .inner {
    margin: 0 20px;
    padding: 10px 20px;
}

.toc li ul {
    margin-inline-start: var(--gap);
}

.toc summary:focus {
    outline: 0;
}

.post-footer {
    margin-top: 56px;
}

.post-tags li {
    display: inline-block;
    margin-inline-end: 3px;
    margin-bottom: 5px;
}

.post-tags a,
.share-buttons,
.paginav {
    border-radius: var(--radius);
    background: var(--code-bg);
    border: 1px solid var(--border);
}

.post-tags a {
    display: block;
    padding-inline-start: 14px;
    padding-inline-end: 14px;
    color: var(--secondary);
    font-size: 14px;
    line-height: 34px;
    background: var(--code-bg);
}

.post-tags a:hover,
.paginav a:hover {
    background: var(--border);
}

.share-buttons {
    margin: 14px 0;
    padding-inline-start: var(--radius);
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.share-buttons a {
    margin-top: 10px;
}

.share-buttons a:not(:last-of-type) {
    margin-inline-end: 12px;
}

h1:hover .anchor,
h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor {
    display: inline-flex;
    color: var(--secondary);
    margin-inline-start: 8px;
    font-weight: 500;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.paginav {
    margin: 10px 0;
    display: flex;
    line-height: 30px;
    border-radius: var(--radius);
}

.paginav a {
    padding-inline-start: 14px;
    padding-inline-end: 14px;
    border-radius: var(--radius);
}

.paginav .title {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: small;
    color: var(--secondary);
}

.paginav .prev,
.paginav .next {
    width: 50%;
}

.paginav span:hover:not(.title) {
    box-shadow: 0 1px 0;
}

.paginav .next {
    margin-inline-start: auto;
    text-align: right;
}

[dir="rtl"] .paginav .next {
    text-align: left;
}

h1>a>svg {
    display: inline;
}

img.in-text {
    display: inline;
    margin: auto;
}

/* Spacing reductions: keep ~20% of original top space above post header and reduce main top padding */
body#top > main.main {
    /* Original was padding: var(--gap); Keep only ~20% on top to tighten space under site header */
    padding-top: calc(var(--gap) * 0.2);
}

body#top > main.main > article.post-single > header.post-header {
    /* Original margin-top was 24px; reduce to ~20% */
    margin-top: calc(var(--gap) * 0.2);
}

/* Also handle pages using .page-header (lists/terms etc.) */
body#top > main.main > header.page-header {
    margin-top: calc(var(--gap) * 0.2);
}
.buttons,
.main .profile {
    display: flex;
    justify-content: center;
}

.main .profile {
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2));
    text-align: center;
}

.profile .profile_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile img {
    border-radius: 50%;
}

.buttons {
    flex-wrap: wrap;
    max-width: 400px;
}

.button {
    background: var(--tertiary);
    border-radius: var(--radius);
    margin: 8px;
    padding: 6px;
    transition: transform 0.1s;
}

.button-inner {
    padding: 0 8px;
}

.button:active {
    transform: scale(0.96);
}
#searchbox input {
    padding: 4px 10px;
    width: 100%;
    color: var(--primary);
    font-weight: bold;
    border: 2px solid var(--tertiary);
    border-radius: var(--radius);
}

#searchbox input:focus {
    border-color: var(--secondary);
}

#searchResults li {
    list-style: none;
    border-radius: var(--radius);
    padding: 10px;
    margin: 10px 0;
    position: relative;
    font-weight: 500;
}

#searchResults {
    margin: 10px 0;
    width: 100%;
}

#searchResults li:active {
    transition: transform 0.1s;
    transform: scale(0.98);
}

#searchResults a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    outline: none;
}

#searchResults .focus {
    transform: scale(0.98);
    border: 2px solid var(--tertiary);
}
.terms-tags li {
    display: inline-block;
    margin: 10px;
    font-weight: 500;
}

.terms-tags a {
    display: block;
    padding: 3px 10px;
    background: var(--tertiary);
    border-radius: 6px;
    transition: transform 0.1s;
}

.terms-tags a:active {
    background: var(--tertiary);
    transform: scale(0.96);
}
.testimonials-container {
  margin: 0.5rem auto;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  max-width: 800px;
}

.testimonials-container h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
}

.testimonial {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonial-stars {
  color: #f39c12;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: #555;
  margin-bottom: 0.5rem;
}

.testimonial-author {
  text-align: right;
  font-weight: bold;
  color: #333;
}
/* from reset */
::-webkit-scrollbar-track {
    background: 0 0;
}

.list:not(.dark)::-webkit-scrollbar-track {
    background: var(--code-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--tertiary);
    border: 5px solid var(--theme);
    border-radius: var(--radius);
}

.list:not(.dark)::-webkit-scrollbar-thumb {
    border: 5px solid var(--code-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

::-webkit-scrollbar:not(.highlighttable, .highlight table, .gist .highlight) {
    background: var(--theme);
}

/* from post-single */

.post-content :not(table) ::-webkit-scrollbar-thumb {
    border: 2px solid var(--code-block-bg);
    background: rgb(113, 113, 117);
}

.post-content :not(table) ::-webkit-scrollbar-thumb:hover {
    background: rgb(163, 163, 165);
}

.gist table::-webkit-scrollbar-thumb {
    border: 2px solid rgb(255, 255, 255);
    background: rgb(173, 173, 173);
}

.gist table::-webkit-scrollbar-thumb:hover {
    background: rgb(112, 112, 112);
}

.post-content table::-webkit-scrollbar-thumb {
    border-width: 2px;
}

/* from zmedia */
@media screen and (min-width: 768px) {

    /* reset */
    ::-webkit-scrollbar {
        width: 19px;
        height: 11px;
    }
}
/*
This is just a placeholder blank stylesheet so as to support adding custom styles budled with theme's default styles

Read https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#bundling-custom-css-with-themes-assets for more info
*/
