/* ================================================================
   Blog Styles — Robel Real Estate
   Premium, clean design inspired by top real estate blogs
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Noto+Kufi+Arabic:wght@400;600;700&family=Playfair+Display:ital,wght@0,700;1,500&display=swap');

/* ----------------------------------------------------------------
   1. Blog Layout
---------------------------------------------------------------- */

.blog-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(201, 162, 63, 0.12) 0%, transparent 70%);
}

.blog-hero-tag {
    display: inline-block;
    background: rgba(201, 162, 63, 0.15);
    border: 1px solid rgba(201, 162, 63, 0.4);
    color: #c9a23f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.blog-hero h1 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
}

.blog-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
}

/* ----------------------------------------------------------------
   2. Blog Grid
---------------------------------------------------------------- */

.blog-section {
    background: #f8fafd;
    padding: 70px 0 90px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   3. Blog Card
---------------------------------------------------------------- */

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    position: relative;
    overflow: hidden;
}

.blog-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-cat {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #c9a23f;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.blog-card-meta i { font-size: 0.72rem; }

.blog-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 10px;
    flex: 1;
}

.blog-card p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c9a23f;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    width: fit-content;
}

.blog-card-link:hover { border-color: #c9a23f; }

/* ----------------------------------------------------------------
   4. Article (Single Post) Layout
---------------------------------------------------------------- */

.article-hero {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    padding: 90px 0 60px;
    position: relative;
}

.article-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-hero-cat {
    display: inline-block;
    background: rgba(201,162,63,0.15);
    border: 1px solid rgba(201,162,63,0.35);
    color: #c9a23f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.article-hero h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

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

.article-cover {
    width: 100%;
    max-width: 800px;
    margin: -40px auto 0;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    height: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    z-index: 5;
}

.article-body {
    max-width: 800px;
    margin: 50px auto 80px;
    padding: 0 24px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}

.article-body h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin: 48px 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #c9a23f;
    display: inline-block;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 32px 0 12px;
}

.article-body p { margin-bottom: 22px; }

.article-body ul, .article-body ol {
    padding-right: 24px;
    margin-bottom: 24px;
}

[dir="ltr"] .article-body ul,
[dir="ltr"] .article-body ol { padding-left: 24px; padding-right: 0; }

.article-body li { margin-bottom: 10px; }

.article-body blockquote {
    border-right: 4px solid #c9a23f;
    background: #fefce8;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #78716c;
    margin: 32px 0;
}

[dir="ltr"] .article-body blockquote {
    border-right: none;
    border-left: 4px solid #c9a23f;
    border-radius: 12px 0 0 12px;
}

.article-body .info-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 24px;
    margin: 32px 0;
}

.article-body .info-box h4 {
    color: #0369a1;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 40px 36px;
    text-align: center;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.article-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(201,162,63,0.15) 0%, transparent 70%);
}

.article-cta-box h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.article-cta-box p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
    position: relative;
}

.article-cta-box .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #c9a23f;
    color: #fff;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.25s, transform 0.25s;
    position: relative;
}

.article-cta-box .cta-btn:hover {
    background: #b08d2b;
    transform: translateY(-2px);
}

/* RTL Breadcrumb */
.breadcrumb-blog {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb-blog a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-blog a:hover { color: #c9a23f; }
.breadcrumb-blog .sep { color: rgba(255,255,255,0.3); }
.breadcrumb-blog .current { color: rgba(255,255,255,0.9); }

/* Related Articles */
.related-articles {
    background: #f1f5f9;
    padding: 60px 0;
}

.related-articles h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 36px;
}

/* ----------------------------------------------------------------
   5. Blog Mobile Big Logo (spans header + hero)
---------------------------------------------------------------- */

.blog-mobile-big-logo {
    display: none;
}

@media (max-width: 768px) {
    .blog-mobile-big-logo {
        display: flex !important;
        position: absolute;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 50;
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(10px);
        border: 3px solid rgba(201, 162, 63, 0.45);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(201, 162, 63, 0.12);
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .blog-mobile-big-logo img {
        width: 100%;
        height: auto;
        object-fit: contain;
        filter: brightness(1.15);
    }

    /* Adjust hero to accommodate the overlapping logo */
    .blog-hero {
        position: relative;
        padding-top: 140px !important;
    }

    .article-hero {
        position: relative;
        padding-top: 140px !important;
    }
}

/* ----------------------------------------------------------------
   6. Mobile overrides
---------------------------------------------------------------- */

@media (max-width: 768px) {
    .blog-hero { padding: 100px 20px 50px; }
    .article-hero { padding: 100px 0 40px; }
    .article-cover { height: 240px; margin-top: -20px; }
    .article-body { font-size: 0.97rem; }
    .article-cta-box { padding: 28px 20px; }
    .article-body h2 { font-size: 1.3rem; }
}
