/*=====================================================
BLOG POST LAYOUT
=====================================================*/

.blog-post {
    background: #ffffff;
    padding: 80px 20px;
}

.blog-layout {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 820px) 360px;
    justify-content: center;
    gap: 70px;
    align-items: start;
}

/*=====================================================
POST
=====================================================*/

.post-container {
    min-width: 0;
}

.post-category {
    color: #b18024;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.post-category a {
    color: #b18024;
    text-decoration: none;
}

.post-category a:hover {
    color: #8d641b;
}

.post-title {
    color: #051f45;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    color: #5a6178;
    font-size: .95rem;
    margin-bottom: 40px;
}

.featured-image {
    margin-bottom: 50px;
}

.featured-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.post-content {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.9;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #051f45;
    margin: 60px 0 20px;
    line-height: 1.3;
}

.post-content p {
    margin-bottom: 1.8rem;
}

.post-content ul,
.post-content ol {
    margin: 30px 0;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content blockquote {
    margin: 50px 0;
    padding: 30px;
    background: #f7f8fa;
    border-left: 5px solid #b18024;
    font-style: italic;
    font-size: 1.2rem;
    color: #051f45;
}

.post-content img {
    display: block;
    max-width: 100%;
    border-radius: 12px;
    margin: 40px auto;
}

.post-content a {
    color: #051f45;
    text-decoration: none;
    border-bottom: 2px solid #b18024;
    transition: .3s;
}

.post-content a:hover {
    color: #b18024;
}

/*=====================================================
POST TAGS
=====================================================*/

.post-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #d9dde5;
}

.post-tags a {
    display: inline-block;
    margin: 6px;
    padding: 8px 18px;
    background: #eef1f5;
    color: #051f45;
    border-radius: 30px;
    text-decoration: none;
    transition: .3s;
}

.post-tags a:hover {
    background: #051f45;
    color: #fff;
}

/*=====================================================
SIDEBAR
=====================================================*/

.blog-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    margin-bottom: 55px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e3e6eb;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.sidebar-widget h3 {
    color: #051f45;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
}

.sidebar-widget h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #b18024;
    margin-top: 12px;
}

/*=====================================================
SEARCH
=====================================================*/

.blog-sidebar .search-form {
    position: relative;
}

.blog-sidebar .search-field {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    font-size: .95rem;
}

.blog-sidebar .search-field:focus {
    outline: none;
    border-color: #051f45;
}

.blog-sidebar .search-submit {
    display: none;
}

/*=====================================================
CATEGORIES
=====================================================*/

.sidebar-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.sidebar-categories li a {
    color: #5a6178;
    text-decoration: none;
    transition: .3s;
}

.sidebar-categories li a:hover {
    color: #b18024;
}

.sidebar-categories .count {
    background: #eef1f5;
    color: #051f45;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .8rem;
}

/*=====================================================
RELATED POSTS
=====================================================*/

.related-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    transition: transform .25s ease;
}

.related-post:hover {
    transform: translateX(4px);
}

.related-image img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
}

.related-content h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.4;
}

.related-content h4 a {
    color: #051f45;
    text-decoration: none;
    transition: .3s;
}

.related-content h4 a:hover {
    color: #b18024;
}

.related-date {
    font-size: .85rem;
    color: #5a6178;
}




/*=====================================================
CUSTOM SEARCH FORM
=====================================================*/

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #5a6178;
    pointer-events: none;
}

.search-form .search-field {
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    padding: 0 18px 0 48px;
    border: 1px solid #d9dde5;
    border-radius: 8px;
    background: #fff;
    font-size: .95rem;
    color: #051f45;
    transition: .3s;
}

.search-form .search-field::placeholder {
    color: #5a6178;
}

.search-form .search-field:focus {
    outline: none;
    border-color: #051f45;
    box-shadow: 0 0 0 3px rgba(5,31,69,.08);
}

/*=====================================================
CURRENT CATEGORY
=====================================================*/

.sidebar-categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-left: 4px solid transparent;
    transition: all .3s ease;
}

.sidebar-categories li a {
    color: #5a6178;
    text-decoration: none;
    transition: all .3s ease;
}

.sidebar-categories li:hover {
    border-left-color: #b18024;
    background: #f7f8fa;
}

.sidebar-categories li:hover a {
    color: #051f45;
}

.sidebar-categories .current-category {
    border-left-color: #b18024;
    background: #f7f8fa;
}

.sidebar-categories .current-category a {
    color: #051f45;
    font-weight: 700;
}

.sidebar-categories .current-category .count {
    background: #b18024;
    color: #ffffff;
}