/* ========================
   Category Header
======================== */
.category-header {
    padding: 50px 0 30px;
    text-align: center;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 400;
    color: var(--text-dark);
}

/* page container (keeps this page consistent with site) */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================
   Main Layout with Sidebar
======================== */
.main-layout {
    padding: 20px 0 60px;
}

.layout-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    max-width: 1100px;
}



/* Posts Grid in Sidebar Layout */
.posts-grid-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.post-card-sidebar .card-image {
    height: 260px;
    overflow: hidden;
    margin-bottom: 15px;
}

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

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

.post-card-sidebar .card-content {
    text-align: left;
}

.post-card-sidebar .category {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.post-card-sidebar .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.4;
    color: var(--text-dark);
}

.post-card-sidebar .date {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* ========================
   Sidebar Styles
======================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.widget {
    text-align: center;
}

.widget-title {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--primary-color);
}

/* Author Widget */
.author-widget {
    padding-bottom: 25px;
}

.author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name-large {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-role {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 15px;
}

.author-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    padding: 0 10px;
}

.author-signature {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-style: italic;
    color: var(--text-dark);
    display: block;
    margin-bottom: 25px;
}

.follow-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.follow-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-light);
    display: block;
    margin-bottom: 15px;
}

.social-boxes-sidebar {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.social-boxes-sidebar .social-box img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s, opacity 0.25s;
    opacity: 0.9;
}

.social-boxes-sidebar .social-box:hover img {
    transform: scale(1.06);
    opacity: 1;
}

/* Trending Widget */
.trending-item {
    display: flex;
    gap: 15px;
    text-align: left;
    margin-bottom: 20px;
}

.trending-item img {
    width: 100px;
    height: 80px;
    object-fit: cover;
}

.trending-item.small img {
    width: 60px;
    height: 60px;
}

.trending-content {
    flex: 1;
}

.trending-date {
    font-size: 10px;
    color: var(--primary-color);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.trending-content h5 {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.trending-content h5 a {
    color: var(--text-dark);
    text-decoration: none;
}

/* Categories Widget */
.category-list {
    list-style: none;
    text-align: left;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--primary-color);
}

.cat-count {
    background: var(--primary-color);
    color: var(--white);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 2px;
}

/* Newsletter Widget Sidebar */
.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    text-align: center;
}

.sidebar-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-btn:hover {
    background: var(--text-dark);
}

/* Promo Widget */
.promo-widget {
    position: relative;
    overflow: hidden;
}

.promo-widget img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    text-align: center;
}

.promo-overlay h4 {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.promo-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 20px;
    font-size: 11px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s;
}

.promo-btn:hover {
    background: var(--primary-color);
}

/* ========================
   Social Bar
======================== */
.social-bar {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.social-link-item img {
    width: 18px;
    opacity: 0.7;
    transition: 0.3s;
}

.social-link-item img:hover {
    opacity: 1;
}

/* ========================
   Footer (Updated)
======================== */
.footer {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-light);
}

.footer .copyright {
    color: var(--text-light);
    font-size: 13px;
}