/* =========================================================
   Blog Archive + Single Post
========================================================= */

.ay-blog-page,
.ay-single-post-page {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    background: #edf4fb;
    color: #0f172a;
    min-height: 100vh;
}

.ay-blog-container,
.ay-single-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.ay-blog-hero,
.ay-single-hero {
    padding: 44px 0 34px;
    background: linear-gradient(135deg, #edf4fb, #ffffff);
    border-bottom: 1px solid #dbe7f5;
}

.ay-blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.ay-blog-breadcrumb a {
    color: #0057b8;
    text-decoration: none;
    font-weight: 800;
}

.ay-blog-breadcrumb i {
    font-size: 10px;
    color: #94a3b8;
}

.ay-blog-hero-card,
.ay-single-hero-card,
.ay-single-content-card,
.ay-blog-empty {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 24px;
    box-shadow: 0 10px 34px rgba(15,23,42,0.08);
}

.ay-blog-hero-card,
.ay-single-hero-card {
    padding: 38px;
}

.ay-blog-hero-card span,
.ay-single-category {
    display: inline-flex;
    background: #e8f0fb;
    color: #0057b8;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 14px;
}

.ay-blog-hero-card h1,
.ay-single-hero-card h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 12px;
}

.ay-blog-hero-card p {
    max-width: 760px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

.ay-blog-list-section,
.ay-single-content-section {
    padding: 42px 0 80px;
}

.ay-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ay-blog-card {
    background: #fff;
    border: 1px solid #dbe7f5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 24px rgba(15,23,42,0.07);
    transition: all .25s ease;
}

.ay-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,87,184,0.14);
}

.ay-blog-card-image {
    height: 220px;
    background: #e8f0fb;
    color: #0057b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    text-decoration: none !important;
}

.ay-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ay-blog-card-body {
    padding: 22px;
}

.ay-blog-meta,
.ay-single-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ay-blog-meta span:first-child {
    color: #0057b8;
}

.ay-blog-card h2 {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.55;
    margin: 0 0 12px;
}

.ay-blog-card h2 a {
    color: #0f172a;
    text-decoration: none !important;
}

.ay-blog-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 16px;
}

.ay-blog-read-more {
    color: #0057b8;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ay-blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.ay-blog-pagination .page-numbers {
    background: #fff;
    color: #0057b8;
    border: 1px solid #dbe7f5;
    padding: 9px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 900;
}

.ay-blog-pagination .page-numbers.current {
    background: #0057b8;
    color: #fff;
    border-color: #0057b8;
}

.ay-blog-empty {
    text-align: center;
    padding: 50px 24px;
}

.ay-blog-empty i {
    font-size: 44px;
    color: #0057b8;
    margin-bottom: 14px;
}

.ay-blog-empty h3 {
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 8px;
}

.ay-blog-empty p {
    color: #64748b;
    margin: 0;
}

.ay-single-content-card {
    padding: 34px;
    max-width: 920px;
    margin: 0 auto;
}

.ay-single-featured {
    margin-bottom: 28px;
    border-radius: 18px;
    overflow: hidden;
}

.ay-single-featured img {
    width: 100%;
    height: auto;
    display: block;
}

.ay-single-content {
    color: #334155;
    font-size: 18px;
    line-height: 2.05;
}

.ay-single-content p {
    margin: 0 0 20px;
}

.ay-single-content h2,
.ay-single-content h3,
.ay-single-content h4 {
    color: #0f172a;
    font-weight: 900;
    line-height: 1.5;
    margin: 34px 0 14px;
}

.ay-single-content h2 {
    font-size: 30px;
}

.ay-single-content h3 {
    font-size: 24px;
}

.ay-single-content ul,
.ay-single-content ol {
    margin: 0 24px 20px 0;
}

.ay-single-content li {
    margin-bottom: 8px;
}

.ay-single-content a {
    color: #0057b8;
    font-weight: 800;
}

@media(max-width: 1000px) {
    .ay-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 640px) {
    .ay-blog-container,
    .ay-single-container {
        padding: 0 14px;
    }

    .ay-blog-grid {
        grid-template-columns: 1fr;
    }

    .ay-blog-hero-card,
    .ay-single-hero-card,
    .ay-single-content-card {
        padding: 24px;
        border-radius: 18px;
    }

    .ay-single-content {
        font-size: 16px;
    }
}