.blog-post {
width: min(1180px, calc(100% - 32px));
margin: 0 auto;
padding: 42px 0 80px;
}

.blog-post-header {
width: min(900px, 100%);
margin: 0 auto 34px;
text-align: center;
}

.blog-post-category {
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: 15px;
padding: 7px 14px;
border-radius: 999px;
background: rgba(212, 175, 55, 0.12);
color: #9a7610;
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.07em;
line-height: 1.2;
text-decoration: none;
text-transform: uppercase;
}

.blog-post-category:hover {
background: rgba(212, 175, 55, 0.2);
color: #765b08;
}

.blog-post-title {
margin: 0;
color: var(--text-color, #1f2937);
font-size: clamp(2.1rem, 5vw, 3.6rem);
font-weight: 800;
line-height: 1.12;
letter-spacing: -0.03em;
}

.blog-post-excerpt {
max-width: 780px;
margin: 19px auto 0;
color: var(--text-muted, #667085);
font-size: clamp(1rem, 2vw, 1.16rem);
line-height: 1.75;
}

.blog-post-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 7px 16px;
margin-top: 22px;
color: var(--text-muted, #667085);
font-size: 0.86rem;
line-height: 1.5;
}

.blog-post-meta span,
.blog-post-meta time {
display: inline-flex;
align-items: center;
}

.blog-post-cover {
width: min(1100px, 100%);
margin: 0 auto 46px;
overflow: hidden;
border-radius: 20px;
background: #f3f4f6;
box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.blog-post-cover img {
display: block;
width: 100%;
max-height: 620px;
height: auto;
object-fit: cover;
}

.blog-post-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 280px;
gap: 52px;
width: min(1050px, 100%);
margin: 0 auto;
align-items: start;
}

.blog-post-content {
min-width: 0;
color: var(--text-color, #29313d);
font-size: 1.06rem;
line-height: 1.9;
}

.blog-post-content > * {
max-width: 820px;
}

.blog-post-content p {
margin: 0 0 25px;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
margin: 44px 0 17px;
color: var(--text-color, #1f2937);
font-weight: 780;
line-height: 1.3;
letter-spacing: -0.015em;
}

.blog-post-content h2 {
font-size: clamp(1.55rem, 3vw, 2rem);
}

.blog-post-content h3 {
font-size: 1.45rem;
}

.blog-post-content h4 {
font-size: 1.25rem;
}

.blog-post-content h5 {
font-size: 1.1rem;
}

.blog-post-content h6 {
font-size: 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
margin: 0 0 28px;
padding-left: 28px;
}

.blog-post-content li {
margin-bottom: 10px;
padding-left: 5px;
}

.blog-post-content li::marker {
color: #b08c1d;
}

.blog-post-content strong {
color: var(--text-color, #1f2937);
font-weight: 750;
}

.blog-post-content a {
color: #8a690c;
font-weight: 650;
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}

.blog-post-content a:hover {
color: #5f4908;
}

.blog-post-content blockquote {
margin: 34px 0;
padding: 23px 26px;
border-left: 4px solid #d4af37;
border-radius: 0 12px 12px 0;
background: rgba(212, 175, 55, 0.08);
color: var(--text-color, #374151);
}

.blog-post-content blockquote p {
margin-bottom: 8px;
}

.blog-post-content blockquote cite {
display: block;
margin-top: 8px;
color: var(--text-muted, #667085);
font-size: 0.88rem;
font-style: normal;
}

.blog-post-image {
width: 100%;
margin: 36px 0;
}

.blog-post-image img {
display: block;
width: 100%;
height: auto;
border-radius: 15px;
background: #f3f4f6;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.blog-post-image figcaption {
margin-top: 10px;
color: var(--text-muted, #667085);
font-size: 0.86rem;
line-height: 1.55;
text-align: center;
}

.blog-post-inline-link {
margin: 25px 0;
}

.blog-post-inline-link a {
color: #8a690c;
font-weight: 700;
}

.blog-post-sidebar {
position: sticky;
top: 24px;
}

.blog-post-sidebar-card {
margin-bottom: 18px;
padding: 20px;
border: 1px solid var(--border-color, #e5e7eb);
border-radius: 14px;
background: var(--card-background, #ffffff);
box-shadow: 0 5px 18px rgba(0, 0, 0, 0.045);
}

.blog-post-sidebar-card:last-child {
margin-bottom: 0;
}

.blog-post-sidebar-card h2 {
margin: 0 0 15px;
color: var(--text-color, #1f2937);
font-size: 1rem;
font-weight: 780;
line-height: 1.35;
}

.blog-post-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.blog-post-tag {
display: inline-flex;
padding: 6px 10px;
border-radius: 7px;
background: rgba(212, 175, 55, 0.1);
color: #85670c;
font-size: 0.77rem;
font-weight: 650;
line-height: 1.3;
text-decoration: none;
}

.blog-post-tag:hover {
background: rgba(212, 175, 55, 0.18);
color: #604a08;
}

.blog-post-sidebar-link {
display: block;
padding: 10px 0;
border-bottom: 1px solid var(--border-color, #e5e7eb);
color: var(--text-color, #344054);
font-size: 0.9rem;
font-weight: 650;
line-height: 1.5;
text-decoration: none;
}

.blog-post-sidebar-link:first-of-type {
padding-top: 0;
}

.blog-post-sidebar-link:last-child {
padding-bottom: 0;
border-bottom: 0;
}

.blog-post-sidebar-link:hover {
color: #8a690c;
}

.blog-post-navigation {
width: min(1050px, 100%);
margin: 36px auto 0;
padding-top: 27px;
border-top: 1px solid var(--border-color, #e5e7eb);
}

.blog-post-back {
display: inline-flex;
align-items: center;
gap: 7px;
color: #85670c;
font-size: 0.92rem;
font-weight: 750;
text-decoration: none;
}

.blog-post-back:hover {
color: #5f4908;
text-decoration: underline;
text-underline-offset: 3px;
}

.blog-post-not-found,
.blog-post-error {
width: min(760px, calc(100% - 32px));
margin: 80px auto;
padding: 52px 30px;
border: 1px solid var(--border-color, #e5e7eb);
border-radius: 18px;
background: var(--card-background, #ffffff);
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.blog-post-not-found h1,
.blog-post-error h1 {
margin: 0 0 14px;
color: var(--text-color, #1f2937);
font-size: clamp(1.7rem, 4vw, 2.2rem);
line-height: 1.25;
}

.blog-post-not-found p,
.blog-post-error p {
margin: 0 0 24px;
color: var(--text-muted, #667085);
line-height: 1.7;
}

.blog-post-not-found .blog-post-back,
.blog-post-error .blog-post-back {
justify-content: center;
}

html[data-theme="dark"] .blog-post-category {
color: #e6c65a;
background: rgba(212, 175, 55, 0.16);
}

html[data-theme="dark"] .blog-post-category:hover {
background: rgba(212, 175, 55, 0.23);
color: #f0d979;
}

html[data-theme="dark"] .blog-post-cover,
html[data-theme="dark"] .blog-post-image img {
background: #20242a;
}

html[data-theme="dark"] .blog-post-content blockquote {
background: rgba(212, 175, 55, 0.1);
}

html[data-theme="dark"] .blog-post-sidebar-card,
html[data-theme="dark"] .blog-post-not-found,
html[data-theme="dark"] .blog-post-error {
background: var(--card-background, #171a1f);
border-color: var(--border-color, #30343b);
}

html[data-theme="dark"] .blog-post-tag {
color: #e6c65a;
background: rgba(212, 175, 55, 0.13);
}

html[data-theme="dark"] .blog-post-sidebar-link:hover,
html[data-theme="dark"] .blog-post-content a:hover,
html[data-theme="dark"] .blog-post-back:hover {
color: #e6c65a;
}

@media (max-width: 900px) {
.blog-post-layout {
grid-template-columns: 1fr;
gap: 30px;
}

 
.blog-post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.blog-post-sidebar-card {
    margin-bottom: 0;
}

.blog-post-navigation {
    margin-top: 8px;
}
 

}

@media (max-width: 680px) {
.blog-post {
width: min(100% - 24px, 1180px);
padding: 30px 0 55px;
}

 
.blog-post-header {
    margin-bottom: 27px;
}

.blog-post-title {
    font-size: 2.05rem;
}

.blog-post-excerpt {
    font-size: 0.98rem;
    line-height: 1.68;
}

.blog-post-meta {
    gap: 6px 12px;
    font-size: 0.8rem;
}

.blog-post-cover {
    margin-bottom: 32px;
    border-radius: 13px;
}

.blog-post-cover img {
    max-height: 420px;
}

.blog-post-content {
    font-size: 1rem;
    line-height: 1.82;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: 35px;
}

.blog-post-content h2 {
    font-size: 1.55rem;
}

.blog-post-image {
    margin: 28px 0;
}

.blog-post-image img {
    border-radius: 11px;
}

.blog-post-sidebar {
    display: block;
}

.blog-post-sidebar-card {
    margin-bottom: 16px;
}

.blog-post-not-found,
.blog-post-error {
    width: calc(100% - 24px);
    margin: 55px auto;
    padding: 38px 20px;
}
 

}

@media (prefers-reduced-motion: reduce) {
.blog-post *,
.blog-post *::before,
.blog-post *::after {
scroll-behavior: auto !important;
transition: none !important;
animation: none !important;
}
}
