/* ===================================
   BLOG LIST PAGE STYLES
   =================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===================================
   HERO SECTION
   =================================== */
.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="white" opacity="0.05"/></svg>');
    background-size: 200px;
    background-position: center;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.search-bar {
    max-width: 330px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 40px;
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ===================================
   CATEGORY NAVIGATION
   =================================== */
.category-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.category-item {
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover,
.category-item.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===================================
   BLOG CONTENT
   =================================== */
.blog-content {
    padding: 60px 0;
    background: var(--light);
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* ===================================
   BLOG LIST
   =================================== */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 14px;
}

.article-date svg {
    color: var(--primary);
}

.article-category {
    background: var(--light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-link:hover .article-title {
    color: var(--primary);
}

.article-excerpt {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--border);
    padding-top: 15px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow-icon {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.article-link:hover .arrow-icon {
    transform: translateX(5px);
}

.article-link:hover .article-title {
    color: var(--primary);
    text-decoration: underline;
}

/* ===================================
   SIDEBAR
   =================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    margin-bottom: 20px;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.recent-post-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.recent-post-date {
    font-size: 13px;
    color: var(--gray);
}

/* Categories */
.category-widget {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray);
    transition: all 0.3s ease;
}

.category-link:hover,
.category-link.active {
    background: var(--primary);
    color: var(--white);
}

/* Tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--light);
    color: var(--gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}



/* ===================================
   PAGINATION
   =================================== */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--border);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pagination .current,
.pagination span.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .disabled:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--border);
    transform: none;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-wrapper {
    display: flex;
    justify-content: center;
}

.cta-box {
    background: var(--white);
    padding: 50px 60px;
    border-radius: 12px;
    text-align: center;
    color: var(--dark);
    max-width: 600px;
    box-shadow: var(--shadow-lg);
}

.cta-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .category-list {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .search-bar {
        flex-direction: column;
        padding: 15px;
        border-radius: 12px;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .blog-content {
        padding: 40px 0;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .category-list {
        gap: 15px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .cta-box {
        padding: 35px 25px;
    }
    
    .cta-box h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }
    
    .category-item {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .recent-post-link {
        flex-direction: column;
    }
    
    .recent-post-img {
        width: 100%;
        height: 120px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   TEXT SELECTION
   =================================== */
.blog-hero,
.category-nav,
.blog-content,
.cta-section {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}