* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2D3748;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Modern Footer Styles */
.site-footer {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 60px 0 30px 0;
    margin-top: 60px;
    width: 100%;
    font-size: 15px;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    filter: brightness(0) invert(1);
    /* Ensure logo is white on dark background */
}

.footer-slogan {
    line-height: 1.6;
    color: #a0aec0;
    max-width: 300px;
}

.footer-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #2d3748;
    text-align: center;
    color: #718096;
    font-size: 14px;
}

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

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer {
        padding: 40px 0 20px 0;
    }
}


div.lnav {
    overflow: hidden;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: #1a202c;
    z-index: 5;
}

.lnav ul {
    list-style-type: none;
    padding: 0;
    max-width: 1207px;
    width: 100%;
    margin: auto;
    height: 52px;
    line-height: 50px;
}

.lnav li {
    display: block;
    float: left;
}

.lnav a:hover {
    background-color: #4b7b918a;
}

.lnav .nav-li-logo {
    height: 100%;
}

.lnav .nav-li-logo a {
    display: inline-block;
    height: 100%;
    padding: 0 12px;
}

.lnav .nav-li-logo img {
    vertical-align: middle;
    /* Ensures the image aligns with its container */
}

.lnav .nav-li-text {
    height: 100%;
    line-height: 50px;
    /* Ensure it matches the height of the nav bar */
}

.lnav .nav-li-text a {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 12px;
}

.btnactive {
    background-color: #4b7b91;
}

.btninactive {
    background-color: rgba(75, 123, 145, 0.23);
    padding: 7px;
    border-radius: 7px;
    text-align: center;
}

.button a:hover {
    background-color: #111;
}

a.btnactive:hover {
    background-color: #4b7b91;
}

.btngr a:hover {
    background-color: lightgrey;
}

.btngr a {
    display: block;
    text-align: center;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    color: #1a202c;
    background-color: #e2e3e6;
    font-weight: bold;
}

.btngr a.btnactive {
    color: white;
    background-color: #4b7b91;
}

.tags ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 0;
}

.tags li {
    display: inline-block;
    margin: 3px 1px;
}

.button a {
    display: block;
    color: white;
    text-align: center;
    padding: 13px 16px;
    text-decoration: none;
    font-size: 18px;
}

.buttonSm a {
    display: inline-block;
    font-size: 14px;
}

.content {
    max-width: 1240px;
    width: 100%;
    margin: auto;
    overflow: auto;
    flex: 1;
}

.center-container {

    float: left;
    width: 70%;
}

.container {
    padding: 15px;
}

.sidebar {
    float: left;
    width: 30%;
}

.sidebar .colhd {
    font-size: 15px;
    background-color: #1a202c;
    color: white;
    font-weight: bold;
    padding: 8px 10px;
    margin-top: 15px;
}

.sidebarlink {
    padding-left: 5px;
}

.sidebarlink a {
    display: block;
    color: #1a202c;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    font-size: 14px;
}

.sidebarlink a:hover {
    color: #4b7b91;
}

.post-page {
    color: rgb(33, 33, 33);
}

.post-page h1 {
    font-size: 33px;
    margin-top: 10px;
}

.post-date-views {
    font-size: 14px;
    color: gray;
}

.post-body img {
    max-width: 100%;
    height: auto !important;
}

.post-body a {
    color: #4b7b91;
}

.post-body p {
    line-height: 1.6em;
}

.post-body li {
    margin-top: 10px;
}

article {
    padding-right: 0;
}

ul.lenta-breadcrumb {
    padding: 2px 0;
    list-style: none;
    margin: 0;
}

ul.lenta-breadcrumb li {
    display: inline;
    font-size: 14px;

}

ul.lenta-breadcrumb li+li:before {
    padding: 6px;
    color: black;
    content: "/\00a0";
}

ul.lenta-breadcrumb li a {
    color: #4b7b91;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    line-height: 2em;
}

ul.lenta-breadcrumb li a:hover {
    color: #2e4d5d;
    text-decoration: underline;
}

.arc-list li {
    width: 49%;
    display: inline-block;
    margin-top: 20px;
    vertical-align: top;
}

.arc-list .img-cont {
    float: left;
    margin-right: 20px;
    width: 155px;
}

.arc-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.cards-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
}

.articles-list-block {
    clear: both;
    width: 100%;
}

@media only screen and (min-width: 600px) {
    ul.cards-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 900px) {
    ul.cards-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cards-list li {
    width: 100%;
    overflow: hidden;
    min-width: 0;
    /* Prevents overflow content from stretching grid */
}

.arc-list a {
    font-size: 15px;
    color: #202327;
    font-weight: bold;
    text-decoration: none;
}

.arc-list a:hover {
    text-decoration: underline;
}

.arc-list img {
    width: 152px;
    height: 114px;
    max-width: 100%;
}

.two-col-card .item-wrap {
    width: 58%;
    margin-left: 6px;
    display: inline-block;
    vertical-align: top;
}

.two-col-card .img-cont {
    display: inline-block;
    width: 37%;
}

.two-col-card img {
    width: 100%;
    aspect-ratio: 248/186;
}

.page-pag-block {
    text-align: center;
    margin-top: 20px;
    line-height: 2em;
}

.page-pag-block ul,
.page-pag-block li {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.page-pag-block .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    border: 0;
}

.page-pag-block a,
.page-pag-block span {
    padding: 10px 12px;
}

.page-pag-block li:hover {
    background-color: #e2e3e6;

}

.page-pag-block .active {
    background-color: #4b7b91;
    color: white;
}

.page-pag-block a {
    text-decoration: none;
    color: #4b7b91;
    font-weight: bold;
}

/* removed duplicate li rule */

.lenta-card .image-container {
    position: relative;
}

.lenta-card .ad-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #1a202c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
}

.lenta-card .card-container {
    padding: 10px;
}

.lenta-card .card-image {
    aspect-ratio: 248/186;
    width: 100%;
    height: auto;
}

.lenta-card h2,
.lenta-card .p-title {
    font-size: 20px;
    font-weight: bold;
}

.lenta-card p {
    font-size: 14px;
}

.lenta-card h4 {
    font-size: 17px;
    margin: 10px 0 5px 0;
    line-height: 1.3;
}

.lenta-card .spec-info,
.temp-det-rcol .spec-info {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.temp-det-rcol .template-source {
    margin-bottom: 30px;
}

.btngr a.btnactive {
    text-transform: capitalize;
}

.btngr a.btnactive:hover {
    background-color: #40687b;
}

.temp-det-lcol {
    width: 54%;
    display: inline-block;
    vertical-align: top;
    margin-top: 1em;
}

.temp-det-rcol {
    vertical-align: top;
    width: 44%;
    display: inline-block;
    line-height: 1.6em;

}

a.buy-coffee-button {
    display: inline-block;
    padding: 5px 10px 0 10px;
    font-size: 14px;
    color: #ffffff;
    background-color: #ff813f;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    vertical-align: middle;
    margin: 5px 0 10px 0;
}

.buy-coffee-button:hover {
    background-color: #e07635;
}

.temp-det-rcol .cont {
    padding-left: 15px;
}

.other-text {
    padding: 25px 0;
    line-height: 1.6em;
}

.slider {
    width: 100%;
}

.slider img {
    width: 100%;
    height: auto !important;
}

.thumbnail {
    display: inline-block;
    margin: 5px;
    vertical-align: top;
    border: 1px solid #dddedf;
    width: 100px;
    height: 75px;

}

.thumbnail.selc {
    border: 3px solid #a6a7a8;
}

.thumbnail .cont {
    justify-content: center;
    align-items: center;
    display: flex;
}

.gads-bot,
.gads-side {
    margin-top: 30px;
}

.template-search-section .input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

input.search {
    flex: 1;
    box-sizing: border-box;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: white;
    background-image: url('/static/img/icon-search.svg');
    background-position: 14px center;
    background-repeat: no-repeat;
    padding: 14px 20px 14px 48px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input.search:focus {
    outline: none;
    border-color: #4B7B91;
    box-shadow: 0 0 0 3px rgba(75, 123, 145, 0.15);
}

.input-group-btn button {
    background-color: #4B7B91;
    border: none;
    color: white;
    padding: 15px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
    height: 100%;
}

.input-group-btn button:hover {
    background-color: #3d6476;
}

.template-search-section {
    background-color: #F7FAFC;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 24px;
    margin-bottom: 30px;
}

.template-search-section form {
    background: none;
    text-align: left;
    padding: 0;
}

.template-search-section fieldset {
    border: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.template-search-section legend {
    font-size: 14px;
    font-weight: 600;
    color: #4A5568;
    margin-bottom: 10px;
}

.template-search-section ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.template-search-section li {
    margin: 0;
}

.template-search-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #4A5568;
}

.template-search-section input {
    accent-color: #4b7b91;
}

a.lenta-link {
    color: #4b7b91;
}

.text-align-center {
    text-align: center;
}

.template-rating {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 1em;
    border-radius: 8px;
    max-width: 500px;
    margin: 1em auto;
    font-family: sans-serif;
    text-align: center;
}

.current-rating {
    margin-bottom: 1em;
}

.stars-display .star {
    font-size: 1.2em;
    color: #ccc;
}

.stars-display .star.filled {
    color: gold;
}

.stars-display .star.half {
    background: linear-gradient(90deg, gold 50%, #ccc 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stars-input {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars-input .star {
    font-size: 2em;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.stars-input .star.selected {
    color: gold;
}

.captcha-container input {
    padding: 5px;
    width: 150px;
    margin-bottom: 10px;
}

#submit-rating {
    padding: 0.5em 1em;
    font-weight: bold;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#submit-rating:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.rating-message {
    margin-top: 10px;
    font-weight: bold;
    color: green;
    text-align: center;
}

@media only screen and (max-width: 600px) {

    .center-container,
    .sidebar,
    .lenta-card {
        width: 100%;
    }

    /* removed old cards-list override */

    .post-page h1 {
        font-size: 27px;
    }

    article {
        padding-right: 0;
    }

    .template-search-section .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .input-group-btn button {
        width: 100%;
        padding: 12px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 900px) {
    .two-col-card .item-wrap {
        width: 100%;
        margin: 3px 0 0 0;
    }

    .two-col-card .img-cont {
        width: 100%;
    }


}

/* removed old cards-list override */

@media only screen and (max-width: 900px) {

    .arc-list li,
    .temp-det-rcol,
    .temp-det-lcol {
        width: 100%;
    }
}


/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Aligned to right for less intrusion, or center? User said "down the screen" */
    max-width: 300px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    /* Slightly rounded, minimal look */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 13px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-notice p {
    margin: 0;
    line-height: 1.4;
}

.cookie-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

@media (max-width: 576px) {
    .cookie-notice {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
        justify-content: center;
    }
}