@font-face {
    font-family: "Bangers";
    src: url("../frontend/home/v1/fonts/Bangers-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "RussoOne";
    src: url("../frontend/home/v1/fonts/RussoOne-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Righteous";
    src: url("../frontend/home/v1/fonts/Righteous-Regular.ttf") format("truetype");
    font-display: swap;
}

body.content-page {
    min-height: 100vh;
    color: #1e2936;
    background-color: #eeeae0 !important;
    background-image: url("../frontend/home/v1/images/bg-content.jpg") !important;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 1920px auto;
}

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(13, 25, 39, 0.98);
    border-bottom: 4px solid #f5b735;
    box-shadow: 0 5px 18px rgba(9, 17, 27, 0.3);
}

.site-header__inner {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    color: #fff;
    font-family: "Righteous", sans-serif;
    font-size: 16px;
    line-height: 1.1;
    text-transform: uppercase;
}

.site-brand:hover {
    color: #ffd66b;
}

.site-brand img {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.site-brand span {
    display: none;
}

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.site-nav__link,
.site-nav__account {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    color: #111;
    font-family: "Bangers", sans-serif;
    font-size: 17px;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.site-nav__link {
    min-width: 104px;
    background: url("../frontend/home/v1/images/btn-yellow-small2.png") center / 100% 100% no-repeat;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    background-image: url("../frontend/home/v1/images/btn-yellow-small2__sl.png");
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.site-nav__account {
    min-width: 82px;
    color: #fff;
    background: #263c53;
    border: 1px solid rgba(255, 255, 255, 0.32);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.site-nav__account:hover,
.site-nav__account.is-active {
    color: #1b2530;
    background: #ffd15a;
    border-color: #ffd15a;
}

.site-menu-toggle,
.site-menu-button {
    display: none;
}

.content-page .main-content {
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    min-height: calc(100vh - 250px);
    padding: 36px 0 72px;
    background: transparent;
}

.content-page .sidebar_right {
    display: none !important;
}

.content-page .main-content > .container {
    width: calc(100% - 32px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 34px 42px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(26, 40, 54, 0.2);
    border-top: 6px solid #15283b;
    box-shadow: 0 12px 30px rgba(29, 40, 49, 0.14);
}

.content-page .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0 0 28px;
    padding: 0 0 14px;
    border-bottom: 1px solid #d8d9d6;
    color: #6b7280;
    font-family: "Righteous", sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

.content-page .breadcrumb a {
    color: #b46214;
    font-family: "Righteous", sans-serif;
}

.content-page .breadcrumb a:hover {
    color: #162f49;
    text-decoration: underline;
}

.content-page .breadcrumb span {
    color: #5a6470;
    font-family: "Righteous", sans-serif;
}

.content-page .category-header {
    margin: 0 0 28px;
    padding: 0 0 22px;
    text-align: left;
    border-bottom: 1px solid #e2e5e7;
}

.content-page .category-header h1,
.content-page .post-title,
.content-page .related-posts h3 {
    color: #15283b;
    font-family: "RussoOne", sans-serif;
    letter-spacing: 0.3px;
}

.content-page .category-header h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 38px);
    text-transform: uppercase;
}

.content-page .category-description {
    max-width: 780px;
    margin: 0;
    color: #68717b;
    font-family: "Righteous", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.category-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.category-title-art {
    width: 108px;
    height: 105px;
    flex: 0 0 auto;
    object-fit: contain;
}

.category-title-copy {
    min-width: 0;
}

.content-page .posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.content-page .post-item {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    min-height: 145px;
    margin: 0;
    padding: 12px;
    border: 1px solid #d9dfe3;
    border-left: 5px solid #ed9f2f;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(19, 33, 45, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.content-page .post-item:hover {
    border-color: #b7c5d0;
    border-left-color: #f07e19;
    box-shadow: 0 9px 20px rgba(19, 33, 45, 0.14);
    transform: translateY(-2px);
}

.content-page .post-item .post-image {
    width: 116px;
    height: 116px;
    margin: 0;
    border: 0;
    border-radius: 2px;
    background: #eaf0f4;
    box-shadow: none;
}

.content-page .post-item .post-content {
    min-width: 0;
    padding: 4px 0 0;
}

.content-page .post-item .post-title {
    min-width: 0;
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
}

.content-page .post-item .post-title a {
    color: #1b344d;
    font-family: "RussoOne", sans-serif;
    overflow-wrap: anywhere;
}

.content-page .post-item .post-title a:hover {
    color: #d36e13;
}

.content-page .post-item .post-excerpt {
    min-width: 0;
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: #66717c;
    font-family: "Righteous", sans-serif;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.content-page .post-item .post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    color: #7d8790;
    font-family: "Righteous", sans-serif;
    font-size: 12px;
}

.content-page .post-item .post-meta span {
    margin: 0;
}

.content-page .post-item .post-meta .post-author {
    padding: 0;
    color: #7d8790;
    background: transparent;
    border-radius: 0;
    font-size: 12px;
}

.content-page .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 0;
}

.content-page .pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    margin: 0;
    color: #1b344d;
    font-family: "Righteous", sans-serif;
    background: #edf2f5;
    border: 1px solid #cbd5dc;
    border-radius: 2px;
}

.content-page .pagination .page-link:hover,
.content-page .pagination .page-link.current {
    color: #172b3e;
    background: #f6c34d;
    border-color: #dc9e27;
}

.content-page .post-detail {
    margin: 0;
    padding: 34px 40px 40px;
    border: 1px solid #d9dfe3;
    border-top: 5px solid #ed9f2f;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(19, 33, 45, 0.08);
}

.content-page .post-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    text-align: left;
    border-bottom: 1px solid #e1e5e8;
}

.content-page .post-header .post-title {
    margin-bottom: 15px;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.2;
}

.content-page .post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    color: #7b858e;
    font-family: "Righteous", sans-serif;
    font-size: 13px;
}

.content-page .post-meta span {
    margin: 0;
}

.content-page .post-meta .post-category a {
    color: #c46714;
    font-family: "Righteous", sans-serif;
}

.content-page .post-meta .post-author {
    padding: 0;
    color: #7b858e;
    background: transparent;
    border-radius: 0;
}

.content-page .post-content {
    min-width: 0;
    color: #35414c;
    font-family: "Righteous", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

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

.content-page .post-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.content-page .post-content h2,
.content-page .post-content h3,
.content-page .post-content h4 {
    color: #1b344d;
    font-family: "RussoOne", sans-serif;
}

.content-page .post-content a {
    color: #c46714;
}

.content-page .post-content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    color: #425466;
    background: #f4f6f7;
    border-left: 4px solid #ed9f2f;
}

.content-page .post-actions {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e8;
}

.content-page .social-share {
    flex-wrap: wrap;
}

.content-page .related-posts {
    margin: 36px 0 0;
}

.content-page .related-posts h3 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-size: 22px;
    border-bottom: 2px solid #d9dfe3;
}

.content-page .related-post-item {
    min-width: 0;
    border: 1px solid #d9dfe3;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(19, 33, 45, 0.06);
}

.content-page .related-post-content,
.content-page .related-post-title,
.content-page .related-post-meta {
    min-width: 0;
    overflow-wrap: anywhere;
}

.content-page .related-post-title a {
    color: #1b344d;
}

.content-page .giftcode-container {
    max-width: 920px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.content-page .giftcode-page-title {
    margin: 0 0 22px;
    color: #15283b;
    font-family: "RussoOne", sans-serif;
    font-size: clamp(25px, 3vw, 36px);
    text-align: left;
    text-transform: uppercase;
}

.content-page .giftcode-page-intro {
    margin: -10px 0 24px;
    color: #68717b;
    font-family: "Righteous", sans-serif;
    font-size: 15px;
}

.content-page .main-title {
    margin: 0 0 22px !important;
    padding: 0 0 16px !important;
    color: #15283b !important;
    font-family: "RussoOne", sans-serif !important;
    font-size: clamp(25px, 3vw, 36px) !important;
    text-align: left !important;
    text-shadow: none !important;
    letter-spacing: 0.3px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid #d9dfe3 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.content-page .giftcode-list {
    padding: 14px !important;
    background: #f2f5f6 !important;
    border: 1px solid #d4dde2 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
}

.content-page .giftcode-item {
    margin-bottom: 12px !important;
    border: 1px solid #cdd7dd !important;
    border-radius: 2px !important;
    box-shadow: 0 4px 10px rgba(19, 33, 45, 0.06) !important;
}

.content-page .giftcode-item:last-child {
    margin-bottom: 0 !important;
}

.content-page .giftcode-header {
    min-height: 74px;
    padding: 11px 15px !important;
    background: #17324b !important;
    border-bottom: 0 !important;
}

.content-page .giftcode-info {
    min-width: 0;
}

.content-page .giftcode-header:hover {
    background: #214766 !important;
}

.content-page .gift-icon {
    width: 50px !important;
    height: 50px !important;
    margin-right: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 2px !important;
    background-color: #fff !important;
}

.content-page .giftcode-name {
    color: #fff !important;
    font-family: "RussoOne", sans-serif !important;
    font-size: 18px !important;
    letter-spacing: 0.3px !important;
    text-shadow: none !important;
}

.content-page .giftcode-stats {
    color: #cbd8e2 !important;
    font-family: "Righteous", sans-serif !important;
    font-size: 12px !important;
    overflow-wrap: anywhere;
}

.content-page .expand-icon {
    filter: brightness(0) invert(1);
}

.content-page .giftcode-details {
    padding: 18px !important;
    background: #fff !important;
    border-top: 1px solid #d8e0e5 !important;
}

.content-page .item-card {
    min-width: 0;
    border: 1px solid #d5dde2 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}

.content-page .item-name,
.content-page .item-quantity,
.content-page .no-giftcodes {
    font-family: "Righteous", sans-serif !important;
}

.content-page .item-name {
    color: #35414c !important;
}

.content-page .item-quantity {
    color: #53606b !important;
    background: #eef2f4 !important;
    border-color: #cbd5dc !important;
}

.content-page .no-giftcodes {
    color: #64717c !important;
}

@media (max-width: 1199px) {
    .site-header__inner {
        min-height: 76px;
    }

    .site-brand {
        max-width: calc(100% - 58px);
    }

    .site-brand img {
        width: 64px;
        height: 64px;
    }

    .site-menu-toggle {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    .site-menu-button {
        display: flex;
        position: absolute;
        top: 50%;
        right: 0;
        z-index: 2;
        flex: 0 0 42px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 9px;
        cursor: pointer;
        background: #243c54;
        border: 1px solid rgba(255, 255, 255, 0.35);
        clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
        transform: translateY(-50%);
    }

    .site-menu-button span {
        display: block;
        height: 3px;
        background: #fff;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 3;
        display: none;
        padding: 10px 16px 16px;
        background: rgba(13, 25, 39, 0.99);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .site-menu-toggle:checked ~ .site-nav {
        display: block;
    }

    .site-nav__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .site-nav__list li,
    .site-nav__link,
    .site-nav__account {
        width: 100%;
    }

    .site-nav__link,
    .site-nav__account {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    body.content-page {
        background-size: auto 1000px;
    }

    .site-header__inner {
        width: calc(100% - 20px);
        max-width: none;
        box-sizing: border-box;
    }

    .site-brand span {
        display: inline;
        max-width: 150px;
        margin-left: 5px;
        font-size: 13px;
    }

    .content-page .main-content {
        padding: 18px 0 42px;
    }

    .content-page .main-content > .container {
        width: calc(100% - 20px);
        max-width: none;
        padding: 22px 15px 28px;
    }

    .content-page .posts-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .category-title-row {
        align-items: flex-start;
        gap: 10px;
    }

    .category-title-art {
        width: 72px;
        height: 70px;
    }

    .content-page .category-header h1 {
        font-size: 25px;
    }

    .content-page .post-item {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 12px;
        min-height: 108px;
        padding: 10px;
    }

    .content-page .post-item,
    .content-page .post-item .post-content,
    .content-page .post-item .post-title,
    .content-page .post-item .post-meta {
        min-width: 0;
        max-width: 100%;
    }

    .content-page .post-item .post-image {
        width: 84px;
        height: 84px;
    }

    .content-page .post-item .post-title {
        font-size: 15px;
    }

    .content-page .post-item .post-excerpt {
        margin-bottom: 7px;
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .content-page .post-detail {
        padding: 24px 16px 28px;
    }

    .content-page .post-header .post-title {
        font-size: 25px;
    }

    .content-page .giftcode-list {
        padding: 8px !important;
    }

    .content-page .giftcode-header {
        padding: 10px !important;
    }

    .content-page .giftcode-header,
    .content-page .giftcode-details {
        min-width: 0;
        max-width: 100%;
    }

    .content-page .gift-icon {
        width: 42px !important;
        height: 42px !important;
        margin-right: 10px !important;
    }

    .content-page .giftcode-name {
        font-size: 15px !important;
    }

    .content-page .giftcode-stats {
        font-size: 11px !important;
    }
}
