.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.case-hero {
    background: linear-gradient(180deg, #F6EBE6 0%, #FFFFFF 100%);
    padding: 80px 0px;
}

.case-hero__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Post Categories */
.post-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.post-category {
    display: inline-block;
    padding: 6px 16px;
    background: #A84714;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
     
    transition: all 0.3s ease;
}

.post-category:hover {
    background: #8F3D12;
    transform: translateY(-2px);
}

.case-hero__title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.case-hero__title {
    font-size: 48px;
    line-height: 1.2;
    max-width: 850px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 20px;
}

.case-hero__subtitle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.case-hero__subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: #555;
    text-align: center;
    margin: 0 0 30px;
    max-width: 758px;
}

/* Case Meta Info */
.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

.case-meta__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #333;
    flex-direction: column;
}

.case-meta__label {
    color: #666;
    font-size: 14px;
}

.case-meta__value {
    font-weight: 600;
    color: #1a1a1a;
}

/* Author Info */
.case-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: transparent;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.case-author__photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
}

.case-author__info {
    flex: 1;
}

.case-author__name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.case-author__position {
    font-size: 14px;
    color: #666;
}

.case-author__socials {
    display: flex;
    gap: 10px;
}

.case-author__social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #A84714;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-author__social:hover {
    background: #A84714;
    border-color: #A84714;
    color: #fff;
}

.case-author__social:hover path {
    fill: white;
}

.case-author__social span {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured Image */
.post-featured-image {
    margin: 40px 0;
}

.post-featured-image__img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

/* Content Wrapper */
.case-content-wrapper {
    padding: 60px 0;
    background: #fff;
}

.case-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    min-height: 2000px;
    position: relative;
}

/* Post Content */
.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 50px 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F6EBE6;
}

.post-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 40px 0 20px;
}

.post-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content a {
    color: #A84714;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #8F3D12;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
     
}

.post-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #F6EBE6;
    border-left: 4px solid #A84714;
    font-style: italic;
    color: #555;
}

.post-content pre {
    background: #f5f5f5;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre code {
    background: transparent;
    padding: 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 40px 0 30px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.post-tags__label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    padding: 6px 15px;
    background: #F6EBE6;
    color: #A84714;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
     
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #A84714;
    color: #fff;
}

/* Share Buttons */
.case-share {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.case-share__label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.case-share__buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.case-share__button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #A84714;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-share__button:hover {
    background: #A84714;
    border-color: #A84714;
    color: #fff;
}

.case-share__button:hover path {
    fill: white;
}

.case-share__buttons span {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.case-sidebar {
    position: sticky !important;
    top: 40px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* Table of Contents */
.sidebar-toc {
    background: linear-gradient(180deg, #F6EBE6 0%, #FFFFFF 100%);
    box-shadow: 0px 4px 10px 0px rgba(151, 151, 151, 0.3);
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    position: relative;
    padding-left: 30px;
}

.toc-item::before {
    position: absolute;
    left: 0;
    content: '';
    top: 10px;
    background: #A84714;
    border-radius: 999px;
    width: 8px;
    height: 8px;
}

.toc-item--sub {
    padding-left: 45px;
    font-size: 14px;
}

.toc-item--sub::before {
    width: 6px;
    height: 6px;
    background: #D4926A;
}

.toc-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.toc-link:hover {
    color: #A84714;
}

.toc-link.active {
    color: #A84714;
    font-weight: 600;
}

/* Related Posts */
.sidebar-cases {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-case {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-case__image {
    position: relative;
    display: block;
    overflow: hidden;
     
}

.sidebar-case__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-case__image:hover img {
    transform: scale(1.05);
}

.sidebar-case__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    background: #A84714;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
     
}

.sidebar-case__content {
    padding: 0;
}

.sidebar-case__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-case__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-case__title a:hover {
    color: #A84714;
}

.sidebar-case__date {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.sidebar-case__link {
    color: #A84714;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-case__link:hover {
    color: #8F3D12;
}

/* CTA Widget */
.sidebar-cta {
    background: linear-gradient(135deg, #A84714 0%, #8F3D12 100%);
    color: #fff;
    text-align: center;
}

.sidebar-cta h3 {
    color: #fff;
    margin-bottom: 15px;
}

.sidebar-cta p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.sidebar-cta .btn {
    background: #fff;
    color: #A84714;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.sidebar-cta .btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .case-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .case-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .case-hero {
        padding: 40px 0;
    }
    
    
    
    .case-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 26px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    .case-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .case-hero {
        padding: 30px 0;
    }
    
    .case-hero__title {
        font-size: 24px
    }
    
    .case-author {
        flex-wrap: wrap;
    }
    
    .post-categories {
        flex-wrap: wrap;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

/* Header fix */
.header__main {
    position: relative !important;
}
.post-content img{
    width: 100%;
    min-width: 100%;
}

@media(max-width:1024px){
    .case-author{
        padding-inline:0;
    }
    .case-author__photo{
        width:40px;
        height:40px;
    }
    .case-author__name{
        font-size:14px;
    }
    .case-hero__title {
        font-size: 24px;
    }
    
    .case-hero__subtitle {
        font-size: 14px;
    }
    .case-meta__value{
        font-size:14px;
    }
    .case-author__social{
        width:16px;
        height:16px;
    }
    .case-section__block{
        padding-top:0;
    }
    .case-step{
        align-items:center;
    }
    .case-result__days-number{
        font-size:24px;
    }
}