/* Page Styles */
.page-header-wrapper {
    position: relative;
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.page-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px 0;
}

.page-main {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-family: var(--primary-heading);
    font-size: 2.5rem;
    color: var(--night-black);
    margin-bottom: 20px;
}

.page-featured-image {
    margin: 0 -30px 30px;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--night-black);
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    margin: 2rem 0 1rem;
    font-family: var(--primary-heading);
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;

}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--blue-light);
    border-radius: 3px;
}

.widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-family: var(--primary-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--night-black);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Search Widget */
.search-widget form {
    display: flex;
    gap: 10px;
}

.search-widget input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.search-widget button {
    background: var(--blue-light);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-widget button:hover {
    background: var(--blue-dark);
}

/* Categories Widget */
.categories-widget ul {
    list-style: none;
    padding: 0;
}

.categories-widget li {
    border-bottom: 1px solid var(--border-color);
}

.categories-widget li:last-child {
    border-bottom: none;
}

.categories-widget a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--night-black);
    transition: color 0.3s;
}

.categories-widget a:hover {
    color: var(--blue-light);
}

/* Recent Posts Widget */
.recent-posts-widget ul {
    list-style: none;
    padding: 0;
}

.recent-post {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post .post-thumbnail {
    flex: 0 0 80px;
}

.recent-post .post-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
}

.recent-post .post-info {
    flex: 1;
}

.recent-post h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.recent-post .post-meta {
    font-size: 0.8rem;
    color: var(--night-grey);
}

/* Tags Widget */
.tags-widget .tag-cloud-link {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px 8px 0;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem !important;
    color: var(--night-grey);
    transition: all 0.3s;
}

.tags-widget .tag-cloud-link:hover {
    background: var(--blue-light);
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .page-wrapper {
        grid-template-columns: 1.5fr 1fr;
    }

    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .page-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .widget {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-header-wrapper {
        padding: 20px 0;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-main {
        padding: 20px;
    }

    .page-featured-image {
        margin: 0 -20px 20px;
    }

    .page-content {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.5rem;
    }

    .widget-title {
        font-size: 1.2rem;
    }

    .recent-post .post-thumbnail {
        flex: 0 0 60px;
    }

    .recent-post .post-thumbnail img {
        width: 60px;
        height: 60px;
    }
}
