/**
 * Pages Styles V2 - Enhanced
 * Blog, Archive, Search, 404 - Premium Design
 *
 * @package ATH_ATRAHI_DESIGN
 */

/* ==========================================================================
   CSS Variables - Pages
   ========================================================================== */
:root {
    --page-gold: #b99d63;
    --page-gold-dark: #9a8352;
    --page-gold-light: #d4c49a;
    --page-dark: #0d0d0d;
    --page-dark-secondary: #1a1a1a;
    --page-border: rgba(255,255,255,0.08);
    --page-radius: 20px;
}

/* ==========================================================================
   Common Page Styles
   NOTE: Only apply dark background to specific pages, NOT homepage
   ========================================================================== */

body.blog .site-main,
body.archive .site-main,
body.search .site-main,
body.error404 .site-main {
    background: linear-gradient(180deg, var(--page-dark) 0%, var(--page-dark-secondary) 50%, var(--page-dark) 100%);
    min-height: 100vh;
}

/* Do NOT apply to homepage */
body.home .site-main {
    background: transparent !important;
}

/* ==========================================================================
   Page Hero - Enhanced
   ========================================================================== */

.page-hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, var(--page-dark) 0%, var(--page-dark-secondary) 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(185, 157, 99, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b99d63' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(185, 157, 99, 0.15);
    border: 1px solid rgba(185, 157, 99, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--page-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.page-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--page-gold);
    margin-bottom: 20px;
    line-height: 1.15;
    text-shadow: 0 4px 30px rgba(185, 157, 99, 0.3);
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   Blog Page - Enhanced
   ========================================================================== */

/* Category Tabs - Premium */
.blog-categories {
    padding: 30px 0;
    border-bottom: 1px solid var(--page-border);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-tab {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-tab:hover,
.category-tab.active {
    background: rgba(185, 157, 99, 0.15);
    border-color: rgba(185, 157, 99, 0.4);
    color: var(--page-gold);
    transform: translateY(-2px);
}

.category-tab .count {
    background: rgba(185, 157, 99, 0.25);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* Blog Content Grid */
.blog-content {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Posts Grid - Enhanced */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.posts-grid .post-card.featured {
    grid-column: 1 / -1;
}

/* Post Card - Premium Design */
.post-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--page-border);
    border-radius: var(--page-radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--page-gold), var(--page-gold-light));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    border-color: rgba(185, 157, 99, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.post-card:hover::before {
    opacity: 1;
}

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

.post-card.featured .post-card-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.post-card .post-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card.featured .post-image {
    aspect-ratio: 4/3;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.post-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(185, 157, 99, 0.15), rgba(185, 157, 99, 0.05));
}

.post-image-placeholder svg {
    color: rgba(185, 157, 99, 0.4);
}

.post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-card:hover .post-overlay {
    opacity: 1;
}

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

.post-card.featured .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

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

.post-category {
    background: rgba(185, 157, 99, 0.15);
    color: var(--page-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-card:hover .post-title {
    color: var(--page-gold);
}

.post-card.featured .post-title {
    font-size: 1.75rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--page-border);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(185, 157, 99, 0.3);
}

.post-author-info {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.post-read-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--page-gold);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.post-card:hover .post-read-more {
    gap: 14px;
}

/* ==========================================================================
   Sidebar - Enhanced
   ========================================================================== */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--page-border);
    border-radius: var(--page-radius);
    padding: 28px;
    transition: all 0.4s ease;
}

.sidebar-widget:hover {
    border-color: rgba(185, 157, 99, 0.2);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--page-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title .icon {
    font-size: 1.25rem;
}

/* Search Widget */
.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--page-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--page-gold);
    background: rgba(255, 255, 255, 0.08);
}

.search-field {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-submit {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--page-gold), var(--page-gold-dark));
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: linear-gradient(135deg, var(--page-gold-light), var(--page-gold));
}

/* Popular Posts Widget */
.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-post-item {
    display: flex;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px;
    margin: -12px;
    border-radius: 14px;
}

.popular-post-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.popular-post-thumb {
    width: 80px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popular-post-item:hover .popular-post-thumb img {
    transform: scale(1.1);
}

.popular-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.popular-post-item:hover .popular-post-title {
    color: var(--page-gold);
}

.popular-post-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--page-border);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgba(185, 157, 99, 0.15);
    border-color: rgba(185, 157, 99, 0.4);
    color: var(--page-gold);
    transform: translateY(-2px);
}

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

.newsletter-input {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--page-border);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--page-gold);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--page-gold), var(--page-gold-dark));
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(185, 157, 99, 0.3);
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(185, 157, 99, 0.4);
}

/* ==========================================================================
   Archive/Projects Page - Enhanced
   ========================================================================== */

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--page-border);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(185, 157, 99, 0.15);
    border-color: rgba(185, 157, 99, 0.4);
    color: var(--page-gold);
}

/* Projects Grid - Premium */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--page-border);
    border-radius: var(--page-radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: rgba(185, 157, 99, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-card .card-image {
    position: relative;
    aspect-ratio: 16/11;
    overflow: hidden;
}

.project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

.project-card .card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    color: var(--page-gold);
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.project-card .card-overlay .overlay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--page-gold), var(--page-gold-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-card .card-overlay .overlay-btn:hover {
    transform: scale(1.05);
}

.project-card .card-content {
    padding: 24px;
}

.project-card .card-category {
    color: var(--page-gold);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.project-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.project-card:hover .card-title {
    color: var(--page-gold);
}

.project-card .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.project-card .card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Pagination - Enhanced
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--page-border);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s ease;
}

.pagination .page-link:hover,
.pagination .page-link.active {
    background: linear-gradient(135deg, var(--page-gold), var(--page-gold-dark));
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(185, 157, 99, 0.3);
}

.pagination .page-link.prev,
.pagination .page-link.next {
    width: auto;
    padding: 0 20px;
}

/* ==========================================================================
   404 Page - Enhanced
   ========================================================================== */

.error-404-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--page-dark);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.error-404-page::before {
    content: '404';
    position: absolute;
    font-size: clamp(200px, 40vw, 600px);
    font-weight: 900;
    color: rgba(185, 157, 99, 0.03);
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}

.error-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.error-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, rgba(185, 157, 99, 0.2), rgba(185, 157, 99, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.error-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--page-gold);
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(185, 157, 99, 0.3);
}

.error-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.error-btn.primary {
    background: linear-gradient(135deg, var(--page-gold), var(--page-gold-dark));
    color: #fff;
    box-shadow: 0 8px 30px rgba(185, 157, 99, 0.3);
}

.error-btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(185, 157, 99, 0.4);
}

.error-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--page-border);
}

.error-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Single Post Page - Enhanced
   ========================================================================== */

.single-post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 50px;
}

.post-header .post-category {
    margin-bottom: 20px;
}

.post-header .post-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.3;
}

.post-header .post-meta {
    justify-content: center;
}

.post-featured-image {
    border-radius: var(--page-radius);
    overflow: hidden;
    margin-bottom: 50px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-body {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    line-height: 1.9;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: #fff;
    margin-top: 48px;
    margin-bottom: 20px;
}

.post-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(185, 157, 99, 0.3);
}

.post-body h3 {
    font-size: 1.375rem;
    font-weight: 600;
}

.post-body p {
    margin-bottom: 24px;
}

.post-body a {
    color: var(--page-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body a:hover {
    text-decoration: none;
}

.post-body blockquote {
    margin: 40px 0;
    padding: 32px 40px;
    background: rgba(185, 157, 99, 0.1);
    border-left: 4px solid var(--page-gold);
    border-radius: 0 var(--page-radius) var(--page-radius) 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.post-body ul,
.post-body ol {
    margin: 24px 0;
    padding-left: 24px;
}

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

/* ==========================================================================
   Responsive - Pages
   ========================================================================== */

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-widget {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card.featured .post-card-link {
        grid-template-columns: 1fr;
    }
    
    .post-card.featured .post-content {
        padding: 28px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-categories {
        position: static;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-tab {
        flex-shrink: 0;
    }
    
    .blog-sidebar {
        flex-direction: column;
    }
    
    .sidebar-widget {
        min-width: 100%;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 50px 0;
    }
    
    .post-card .post-content {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .pagination .page-link {
        width: 42px;
        height: 42px;
    }
}
