/* ==========================================================================
   PROPTIQA Blog Page Styles
   ========================================================================== */

/* === Blog Hero Section === */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #02203c 0%, #0f172a 100%);
    color: #fff;
    padding: 160px 20px 140px;
    text-align: center;
    overflow: hidden;
    min-height: 520px;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-hero-badge::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.blog-hero h1 span {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.blog-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 760px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.blog-hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.5);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* === Latest Insights Section === */
.latest-insights-section {
    padding: 90px 0 100px;
    background: #f8fafc;
}

.latest-insights-section .section-header {
    margin-bottom: 60px;
    text-align: center;
}

.latest-insights-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.latest-insights-section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 16px;
}

.latest-insights-section h2 span {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.latest-insights-section .section-desc {
    font-size: 1.05rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === Blog Grid & Cards === */
.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.blog-card-image-wrap {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background-color: #0f172a;
    border-radius: 15px 15px 0 0;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 15px 15px 0 0;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

/* Date Badge — right aligned, straddling image bottom edge, split dark/white design */
.blog-card-date {
    position: absolute;
    top: 195px;
    right: 16px;
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Left section — requested #00347D color, shows day number */
.blog-card-date .date-day {
    background: #00347D;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

/* Right section — white background, shows month and year */
.blog-card-date .date-month {
    background: #ffffff;
    color: #00347D;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid #e2e8f0;
    border-left: none;
    border-radius: 0 6px 6px 0;
}

.blog-card-date .date-month .month,
.blog-card-date .date-month .year {
    color: #00347D;
    font-weight: 700;
}

/* Content Area */
.blog-card-content {
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #2563eb;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.blog-card-link:hover {
    gap: 10px;
    color: #1d4ed8;
}

/* === Pagination Styles ===
   Uses native WordPress .page-numbers ul/li output.
   Shows only when >12 posts exist (controlled by PHP).
   ======================================================== */
.blog-pagination {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.blog-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination ul.page-numbers li {
    display: flex;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    background: #ffffff;
    transition: all 0.2s ease;
}

.blog-pagination .page-numbers:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #00347D;
}

.blog-pagination .page-numbers.current {
    background: #00347D;
    border-color: #00347D;
    color: #ffffff;
    font-weight: 700;
    cursor: default;
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    padding: 0 18px;
    letter-spacing: 0.01em;
}

.blog-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
    color: #94a3b8;
}

/* === Responsive Layout === */
@media (max-width: 1024px) {
    .blog-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .blog-hero h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .blog-card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .blog-hero {
        padding: 120px 20px 80px;
        min-height: auto;
    }
    .blog-hero h1 {
        font-size: 2.25rem;
    }
    .blog-hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn-hero-primary, .btn-hero-outline {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }
    .latest-insights-section h2 {
        font-size: 2rem;
    }
    .blog-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* === Single Post Page Styles === */
.single-post-hero {
    position: relative;
    background: linear-gradient(135deg, #02203c 0%, #0f172a 100%);
    color: #fff;
    padding: 150px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.single-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.single-hero-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.single-hero-breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.single-hero-breadcrumbs a:hover {
    color: #60a5fa;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

.single-post-badge {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.single-post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
    color: #ffffff;
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-post-body {
    padding: 60px 0 90px;
    background: #f8fafc;
}

.single-post-container {
    max-width: 860px;
    margin: 0 auto;
}

.single-post-featured-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1);
}

.single-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-article-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 56px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.single-article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 32px 0 16px;
    line-height: 1.35;
}

.single-article-content p {
    margin-bottom: 24px;
}

.single-article-content ul, .single-article-content ol {
    margin: 0 0 24px 24px;
}

.single-article-content li {
    margin-bottom: 8px;
}

.single-article-content blockquote {
    border-left: 4px solid #3b82f6;
    background: #f1f5f9;
    padding: 20px 28px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1e293b;
}

.single-post-footer {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.single-post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 700;
    color: #475569;
}

.tag-pill {
    background: #e2e8f0;
    color: #334155;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.tag-pill:hover {
    background: #2563eb;
    color: #ffffff;
}

.btn-back-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-back-blog:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.related-insights-section {
    padding: 80px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}


