/* ========================================
   Blog Styles - AxisNetworks
   ======================================== */

/* Blog Hero */
.AN-blog-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 140px 0 80px;
    color: #ffffff;
    text-align: center;
}

.AN-blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.AN-blog-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filters */
.AN-blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 3rem;
}

.AN-blog-filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.AN-blog-filter-btn:hover,
.AN-blog-filter-btn.active {
    background: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

/* Featured Posts */
.AN-blog-featured {
    padding: 0 0 4rem;
}

.AN-blog-featured h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.AN-blog-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.AN-blog-featured-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.AN-blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.AN-blog-featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.AN-blog-featured-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.AN-blog-featured-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.5);
}

.AN-blog-featured-body {
    padding: 1.5rem;
}

.AN-blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #888;
}

.AN-blog-category-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
}

.AN-blog-featured-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.AN-blog-featured-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Post Grid */
.AN-blog-grid-section {
    padding: 0 0 4rem;
}

.AN-blog-grid-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.AN-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.AN-blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.AN-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.AN-blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.AN-blog-card-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a2d4a 0%, #2d4a7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.AN-blog-card-image-placeholder svg {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.4);
}

.AN-blog-card-body {
    padding: 1.25rem;
}

.AN-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #888;
}

.AN-blog-card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.AN-blog-card-body p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.AN-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 0;
}

.AN-blog-pagination a,
.AN-blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.AN-blog-pagination a {
    color: #555;
    border: 1px solid #e0e0e0;
    background: #ffffff;
}

.AN-blog-pagination a:hover {
    background: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
}

.AN-blog-pagination .AN-pagination-current {
    background: #0066cc;
    color: #ffffff;
    border: 1px solid #0066cc;
}

.AN-blog-pagination .AN-pagination-dots {
    color: #999;
    border: none;
}

/* Blog Post Detail */
.AN-blog-post-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 140px 0 60px;
    color: #ffffff;
}

.AN-blog-post-hero .AN-container {
    max-width: 800px;
}

.AN-blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.AN-blog-post-meta .AN-blog-category-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.AN-blog-post-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.AN-blog-post-hero .AN-blog-post-excerpt {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Blog Post Featured Image */
.AN-blog-post-featured-image {
    margin-top: -40px;
    margin-bottom: 3rem;
}

.AN-blog-post-featured-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Blog Post Content */
.AN-blog-post-content {
    padding: 3rem 0 4rem;
}

.AN-blog-post-content .AN-container {
    max-width: 800px;
}

.AN-blog-post-article {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.AN-blog-post-article h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2.5rem 0 1rem;
}

.AN-blog-post-article h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 1rem;
}

.AN-blog-post-article h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.75rem 0 0.75rem;
}

.AN-blog-post-article p {
    margin-bottom: 1.25rem;
}

.AN-blog-post-article a {
    color: #0066cc;
    text-decoration: underline;
}

.AN-blog-post-article a:hover {
    color: #004499;
}

.AN-blog-post-article strong {
    font-weight: 600;
    color: #1a1a1a;
}

.AN-blog-post-article ul,
.AN-blog-post-article ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.AN-blog-post-article li {
    margin-bottom: 0.5rem;
}

.AN-blog-post-article blockquote {
    border-left: 4px solid #0066cc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.AN-blog-post-article code {
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

.AN-blog-post-article pre {
    background: #1a2d4a;
    color: #e0e0e0;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.AN-blog-post-article pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.AN-blog-post-article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.AN-blog-post-article hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2rem 0;
}

.AN-blog-post-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.AN-blog-post-article table th,
.AN-blog-post-article table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.AN-blog-post-article table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Blog Post Tags */
.AN-blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.AN-blog-post-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f0f2f5;
    color: #555;
    text-decoration: none;
}

/* Back to Blog */
.AN-blog-back {
    margin-top: 2rem;
}

.AN-blog-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.AN-blog-back a:hover {
    color: #004499;
}

/* Related Posts */
.AN-blog-related {
    padding: 4rem 0;
    background: #f8f9fa;
}

.AN-blog-related h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
}

.AN-blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Empty State */
.AN-blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #888;
}

.AN-blog-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.AN-blog-empty h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.AN-blog-empty p {
    font-size: 0.95rem;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 992px) {
    .AN-blog-hero h1 {
        font-size: 2.25rem;
    }

    .AN-blog-featured-grid,
    .AN-blog-grid,
    .AN-blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .AN-blog-post-hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .AN-blog-hero {
        padding: 120px 0 60px;
    }

    .AN-blog-hero h1 {
        font-size: 1.85rem;
    }

    .AN-blog-hero p {
        font-size: 1.05rem;
    }

    .AN-blog-featured-grid,
    .AN-blog-grid,
    .AN-blog-related-grid {
        grid-template-columns: 1fr;
    }

    .AN-blog-filters {
        gap: 0.5rem;
    }

    .AN-blog-filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .AN-blog-post-hero {
        padding: 120px 0 50px;
    }

    .AN-blog-post-hero h1 {
        font-size: 1.75rem;
    }

    .AN-blog-post-article {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .AN-blog-hero h1 {
        font-size: 1.6rem;
    }

    .AN-blog-post-hero h1 {
        font-size: 1.5rem;
    }

    .AN-blog-post-article pre {
        font-size: 0.8rem;
        padding: 1rem;
    }
}
