/*
Theme Name: Eranking
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Version: 1.0
*/
/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
.logged-in body {
	margin-top: 45px;
} 
.post-header h1 {
	margin-top: 0;
}
.post-featured-image img {
    object-fit: cover;
    max-height: 345px;
    width: 100%;
    margin-bottom: 10px;
}
.breadcrumbs {
    padding: 15px 0px;
}
nav.breadcrumb-nav a {
    color: #e75021;
    text-decoration: none;
}
main.main-content,
article.single-post {
    background: #fbfbfb;
    margin-bottom: -30px;
    padding-bottom: 40px;
}
.post-content {
    background: #fff;
    padding: 30px;
    width: 78%;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
}
.post-wrapper {
    display: flex;
    flex-wrap: wrap;
	justify-content: space-between;
}
.sidebar-widget.toc-widget {
    position: sticky;
    top: 100px;
	background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

h3.widget-title {
    font-size: 16px;
}
aside.post-sidebar {
    width: 20%;
}
.update-date span {
    display: flex;
    align-items: center;
}
.update-date svg {
    margin-right: 3px;
}
h3.widget-title:before {
    content: "";
    width: 100%;
    height: 2px;
    background: #032244;
    display: block;
	margin-bottom:10px
}
li.h2 {
    border-bottom: 1px solid #e6e7eb;
    padding: 10px 5px;
}
li.h2:first-child {
    border-top: 1px solid #e6e7eb;
}
.table-of-contents ul {
	padding-left: 0;
}
.table-of-contents ul li {
	list-style: none;
}
.table-of-contents ul li a {
    color: #697077;
	font-size: 15px;
    text-decoration: none;
	transition: 0.5s;
}
.table-of-contents ul li a:hover {
	color:#032244;
}

.author-info {
    display: flex;
    margin-bottom: 15px;
}
.author-details {
    margin-left: 10px;
}
.author-name {
    font-weight: bold;
}

.btn-more{
	 display: inline-block;
}

/* Paginacja WordPress */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #032244;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-numbers:hover {
    color: #e75021;
    background: #f8f9fa;
    border-color: #e75021;
    transform: translateY(-1px);
}

.page-numbers:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.page-numbers.current {
    color: #fff;
    background: #e75021;
    border-color: #e75021;
    cursor: default;
    transform: none;
}

.page-numbers.current:hover {
    color: #fff;
    background: #e75021;
    border-color: #e75021;
    transform: none;
}

.page-numbers.prev,
.page-numbers.next {
    padding: 8px 16px;
    font-weight: 500;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
    background: #e75021;
    color: #fff;
    border-color: #e75021;
}

.category-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin: 20px 0;
}

.category-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.category-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.category-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.category-meta {
    font-size: 14px;
}

.posts-grid {
    display: grid;
    gap: 30px;
}

.post-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.post-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.post-card-excerpt {
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-card-author {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.post-card-author .author-avatar img {
    border-radius: 50%;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}


.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-posts h2 {
    margin-bottom: 15px;
    color: #495057;
}

.no-posts p {
    color: #6c757d;
    margin-bottom: 25px;
}


.category-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
	position: relative;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
	color:#032244;
}

.categories-list a:hover,
.categories-list .current-cat a {
    color: #e75021;
}

.post-count {
    font-size: 12px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.recent-post-thumb img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}
article.recent-post-item a {
	text-decoration: none;
}
.recent-post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 5px;
	color:#032244;
}

.recent-post-date {
    font-size: 12px;
	color:#032244;
}


@media only screen and (max-width: 767px) {
    .category-wrapper {
            grid-template-columns: auto;
    }
    aside.post-sidebar {
        width: 100%;
    }
    .post-content {
     width: 100%;
     order: 2;
    }    
}