:root {
    --Accent-Default: #00B1BA;
    --Text-Dark: #292A2A;
    --Text-Dark-Gray: #878D91;
    --Text-Light-Gray: #CACCD0;
    --BG-Gray: #F3F4F5;
    --Gray: #DEE2E3;
    --White: white;
}

* {
    box-sizing: border-box;
}

.blog-container {
    display: flex;
    gap: 40px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 0px;
    font-family: 'Inter', sans-serif;
}

.blog-main {
    flex: 1;
    max-width: 880px;
}

.blog-sidebar {
    width: 440px;
    max-width: 440px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Banner */
.blog-banner {
    width: 100%;
    height: 330px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 40px;
}
.blog-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.blog-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.40) 100%);
    z-index: 2;
}
.blog-banner-content {
    position: absolute;
    z-index: 3;
    left: 24px;
    top: 114px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.blog-banner-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--White) !important;
    font-size: 14px;
    font-weight: 400;
}
.blog-banner-title {
    color: var(--White) !important;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}
.blog-banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Tags / Pills */
.pill {
    height: 32px;
    padding: 6px 12px 8px;
    border-radius: 45px;
    outline: 1px var(--Gray) solid;
    outline-offset: -1px;
    background: var(--White);
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: inline-flex;
    color: var(--Text-Dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    box-sizing: border-box;
}
.pill:hover {
    background: var(--BG-Gray);
    border-color: var(--Accent-Default);
    color: var(--Accent-Default);
}
.pill.active {
    background: var(--Accent-Default);
    color: var(--White) !important;
    border-color: var(--Accent-Default);
}
.pill-transparent {
    background: rgba(255, 255, 255, 0.40);
    outline: 1px rgba(255, 255, 255, 0.20) solid;
    color: var(--White) !important;
}

/* Years Filter */
.years-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.year-btn {
    height: 44px;
    padding: 12px;
    border-radius: 8px;
    color: var(--Text-Dark);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.year-btn.active {
    background: #F3F4F5;
    color: #00B1BA;
}




/* Popular Themes */
.popular-themes {
    margin-bottom: 40px;
}
.section-title {
    color: var(--Text-Dark);
    font-size: 24px;
    font-weight: 600;
    line-height: 28.8px;
    margin-bottom: 20px;
}
.themes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
}
.themes-container.collapsed {
    max-height: 76px; /* ~2 rows */
    overflow: hidden;
}
.themes-toggle {
    height: 32px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    color: var(--Accent-Default);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

/* Blog List */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.blog-item {
    display: flex;
    gap: 20px;
    text-decoration: none;
}
.blog-item img {
    width: 361px;
    min-width: 361px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}
.blog-item-content {
    flex: 1;
    padding: 12px 24px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.blog-item-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.blog-item-date, .blog-item-read {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--Text-Dark-Gray);
    font-size: 14px;
}
.blog-item-title {
    color: var(--Text-Dark);
    font-size: 24px;
    font-weight: 600;
    line-height: 28.8px;
}
.blog-item-desc {
    color: var(--Text-Dark);
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-item-tags {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
}
.blog-pagination .round a, .blog-pagination .round span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 500;
    color: var(--Text-Dark);
    text-decoration: none;
}
.blog-pagination .round a:hover {
    background: rgba(0, 177, 186, 0.10);
}
.blog-pagination .round .active {
    background: rgba(0, 177, 186, 0.10);
}
.blog-pagination .round .active a, .blog-pagination .round .active span {
    color: var(--Accent-Default);
}

/* Sidebar Blocks */
.subscribe-block {
    background: var(--Accent-Default);
    border-radius: 16px;
    padding: 24px;
    color: var(--White) !important;
    box-sizing: border-box;
    width: 100%;
}
.subscribe-title { font-size: 32px; font-weight: 600; margin-bottom: 12px; color: var(--White) !important; }
.subscribe-sub { font-size: 16px; font-weight: 500; line-height: 22.4px; margin-bottom: 24px; color: var(--White) !important; }
.subscribe-socials { display: flex; gap: 8px; margin-bottom: 24px; }
.subscribe-socials a { width: 48px; height: 48px; background: var(--White); border-radius: 48px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.subscribe-btn {
    background: rgba(255, 255, 255, 0.20);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: var(--White) !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.iblock-links {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.iblock-link {
    height: 90px;
    background: var(--BG-Gray);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--Accent-Default);
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    box-sizing: border-box;
    width: 100%;
}
.iblock-link:hover {
    background: rgba(0, 177, 186, 0.20);
}

.promo-item {
    background: var(--BG-Gray);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    width: 100%;
}
.promo-item img { width: 100%; height: 220px; object-fit: cover; }
.promo-item-content { padding: 20px; }
.promo-item-title { color: var(--Text-Dark); font-size: 24px; font-weight: 600; line-height: 28.8px; margin-bottom: 8px; }
.promo-item-desc {
    color: var(--Text-Dark);
    font-size: 16px;
    line-height: 22.4px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.promo-item-link { color: var(--Accent-Default); font-size: 16px; font-weight: 500; }

/* Mobile */
@media (max-width: 1024px) {
    .blog-container { flex-direction: column; }
    .blog-main { max-width: 100%; }
    .blog-sidebar { width: 100%; max-width: 100%; }
}
@media (max-width: 768px) {
    .blog-banner { height: 250px; }
    .blog-banner-title { font-size: 22px; }
    .blog-banner-content { top: 50px; }
    .blog-item { flex-direction: column; }
    .blog-item img { width: 100%; min-width: 100%; height: 200px; }
    .blog-item-content { padding: 12px 0; }
    .subscribe-title { font-size: 24px; }
}