/* Taj Alwuqar — صفحة المقالات v2 (مثل الخدمات — بدون صور عقارات) */
*, *::before, *::after { box-sizing: border-box; }

.art-page-v2 {
    margin: 0;
    font-family: Cairo, 'Noto Sans Arabic', system-ui, sans-serif;
    color: #0c1220;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(201, 162, 77, 0.2), transparent 55%),
        radial-gradient(900px 500px at 100% 20%, rgba(59, 130, 246, 0.07), transparent 50%),
        linear-gradient(180deg, #f6f8fc 0%, #eef2f8 45%, #e8ecf4 100%);
}

.art2-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 72px;
}

/* Breadcrumb — وضوح كامل */
.art-page-v2 .iqfal-breadcrumb.art-bc {
    padding: 0 0 14px;
    margin: 0;
    max-width: none;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
}

.art-page-v2 .iqfal-breadcrumb.art-bc a {
    color: #0f2744;
    font-weight: 800;
    text-decoration: none;
}

.art-page-v2 .iqfal-breadcrumb.art-bc a:hover {
    color: #9a7628;
    text-decoration: underline;
}

.art-page-v2 .iqfal-breadcrumb.art-bc .art-bc-sep,
.art-page-v2 .iqfal-breadcrumb.art-bc span[aria-hidden="true"] {
    color: #94a3b8;
    font-weight: 600;
}

.art-page-v2 .iqfal-breadcrumb.art-bc [aria-current="page"] {
    color: #0f2744;
    font-weight: 900;
}

.art-seo-nav {
    padding-top: 0 !important;
    margin-bottom: 22px !important;
}

/* زر اللغة — ظاهر دائماً */
.art-lang-btn {
    position: fixed;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 200;
    background: linear-gradient(165deg, #0f2744 0%, #15365a 100%);
    border: 2px solid rgba(201, 162, 77, 0.75);
    color: #fceea3;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 10px 18px;
    min-height: 44px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 32px rgba(15, 39, 68, 0.35);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.art-lang-btn:hover {
    background: linear-gradient(165deg, #c9a24d 0%, #e8c547 100%);
    color: #0c1220;
    border-color: #c9a24d;
    transform: translateY(-2px);
}

/* Hero احترافي */
.art2-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 48px) clamp(72px, 10vw, 96px);
    margin-bottom: 0;
    background: linear-gradient(135deg, #071225 0%, #0f2744 38%, #15365a 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(6, 12, 28, 0.45);
    text-align: center;
    min-height: min(72vh, 640px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.art2-hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 120%;
    background: radial-gradient(ellipse 70% 55% at 70% 0%, rgba(201, 162, 77, 0.38), transparent 60%);
    pointer-events: none;
}

.art2-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0 0h60v60H0zm60 60h60v60H60z'/%3E%3C/svg%3E");
    opacity: 0.9;
    pointer-events: none;
}

.art2-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.art2-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 18px;
}

.art2-hero h1,
.art2-hero #art-hero-title {
    margin: 0 0 18px;
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: #ffffff !important;
}

.art2-lead {
    margin: 0 auto 28px;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.92) !important;
    max-width: 58ch;
    font-weight: 600;
}

.art2-stats {
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 520px;
    width: 100%;
}

.art2-stat {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.art2-stat b {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: #f5e6c8;
}

.art2-stat span {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
}

.art2-search {
    display: flex;
    gap: 10px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.art2-search input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.art2-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.art2-search button {
    border: none;
    border-radius: 14px;
    padding: 0 22px;
    background: linear-gradient(165deg, #c9a24d, #e8c547);
    color: #0c1220;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.art2-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 162, 77, 0.45);
}

/* Scroll Down — بدون أيقونة فأرة */
.art-scroll-down {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.25s, transform 0.25s;
}

.art-scroll-down:hover {
    color: #f5e6c8;
    transform: translateX(-50%) translateY(5px);
}

.art-scroll-down__line {
    display: block;
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(201, 162, 77, 0.9));
    animation: artScrollLine 2s ease-in-out infinite;
}

.art-scroll-down__label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.art-scroll-down__icon {
    font-size: 0.9rem;
    color: #c9a24d;
    animation: artScrollBounce 2s ease-in-out infinite;
}

@keyframes artScrollLine {
    0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes artScrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* المحتوى */
.art2-content {
    padding-top: 48px;
    scroll-margin-top: 24px;
}

.art2-section-head {
    margin: 0 0 24px;
    text-align: center;
}

.art2-section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 2.8vw, 1.55rem);
    font-weight: 900;
    color: #0c1220;
}

.art2-section-head p {
    margin: 0 auto;
    max-width: 52ch;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    font-weight: 600;
}

.art-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.art-cat-btn {
    border: 1px solid rgba(15, 39, 68, 0.12);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 10px 18px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    color: #0f2744;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.art-cat-btn:hover,
.art-cat-btn.is-active {
    border-color: rgba(201, 162, 77, 0.55);
    background: rgba(201, 162, 77, 0.16);
    transform: translateY(-1px);
}

/* بطاقات قابلة للتوسيع — مثل خدماتنا */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 18px;
}

.art2-cell {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(12, 18, 32, 0.07);
    background: #fff;
    box-shadow: 0 10px 36px rgba(12, 24, 48, 0.07);
    overflow: hidden;
    transition: box-shadow 0.35s ease, border-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    animation: artCardIn 0.5s ease forwards;
}

@keyframes artCardIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.art2-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(12, 24, 48, 0.1);
}

.art2-cell.is-open {
    border-color: rgba(201, 162, 77, 0.42);
    box-shadow: 0 22px 56px rgba(12, 24, 48, 0.14);
}

.art2-card {
    position: relative;
    padding: 22px 22px 18px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    width: 100%;
    font-family: inherit;
}

.art2-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #c9a24d, #e8d5a3);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.art2-cell.is-open .art2-card::before,
.art2-card:hover::before {
    opacity: 1;
}

.art2-card:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(201, 162, 77, 0.55);
}

.art-card-ico,
.art2-card-ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    background: linear-gradient(145deg, rgba(201, 162, 77, 0.22), rgba(15, 39, 68, 0.06));
    color: #8a6a2a;
    font-size: 1.25rem;
}

.art2-card h3 {
    margin: 0 0 10px;
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1.4;
    color: #0c1220;
}

.art2-card-teaser {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.65;
    font-weight: 600;
}

.art2-more {
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #9a7628;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.art2-more i {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.art2-cell.is-open .art2-more i {
    transform: rotate(-90deg);
}

html[dir="ltr"] .art2-cell.is-open .art2-more i {
    transform: rotate(90deg);
}

.art2-card-drawer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.art2-cell.is-open .art2-card-drawer {
    grid-template-rows: 1fr;
}

.art2-card-drawer-inner {
    min-height: 0;
    overflow: hidden;
}

.art2-cell.is-open .art2-card-drawer-inner {
    overflow-y: auto;
    max-height: min(58vh, 520px);
    -webkit-overflow-scrolling: touch;
}

.art2-drawer-rail {
    height: 3px;
    margin: 0 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 77, 0.55), rgba(201, 162, 77, 0.85), rgba(201, 162, 77, 0.55), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.art2-cell.is-open .art2-drawer-rail {
    opacity: 1;
}

.art2-drawer-body {
    padding: 8px 22px 22px;
    text-align: start;
    font-size: 0.95rem;
    line-height: 1.85;
    color: #334155;
    font-weight: 600;
}

.art2-drawer-body h4 {
    margin: 18px 0 8px;
    font-size: 1.05rem;
    color: #0f2744;
    font-weight: 900;
}

.art2-drawer-body h4:first-child {
    margin-top: 0;
}

.art2-drawer-body p {
    margin: 0 0 12px;
}

.art2-related-label {
    margin: 14px 0 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.art2-drawer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

/* شكل رابط نشط — غير قابل للنقر (مرجع بصري فقط) */
.art2-ref-chip {
    display: inline-block;
    color: #0f2744;
    font-weight: 800;
    font-size: 0.92rem;
    text-decoration: underline;
    text-decoration-color: rgba(201, 162, 77, 0.7);
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.art2-drawer-cta {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 39, 68, 0.08);
}

html[dir="ltr"] .art2-more i.art2-chev,
html[dir="ltr"] .art2-cell.is-open .art2-more i.art2-chev {
    transform: rotate(90deg);
}

html[dir="ltr"] .art2-cell.is-open .art2-more i.art2-chev {
    transform: rotate(-90deg);
}

.art2-drawer-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 39, 68, 0.08);
}

.art2-drawer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 12px;
    width: 100%;
}

.art-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
}

.art-card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 39, 68, 0.06);
    color: #0f2744;
}

.art-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #0f2744;
    color: #fceea3;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.art-read-btn:hover {
    background: linear-gradient(165deg, #c9a24d, #e8c547);
    color: #0c1220;
}

.art-read-btn--ghost {
    background: rgba(15, 39, 68, 0.06);
    color: #0f2744;
    border: 1px solid rgba(15, 39, 68, 0.12);
}

.art-read-btn--ghost:hover {
    border-color: rgba(201, 162, 77, 0.45);
}

.art-empty {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
    font-weight: 700;
    grid-column: 1 / -1;
}

.art2-cta {
    margin-top: 48px;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f2744, #1a3a5c);
    color: #fff;
    text-align: center;
}

.art2-cta p {
    margin: 0 0 16px;
    font-weight: 600;
    line-height: 1.7;
}

.art2-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 14px;
    background: linear-gradient(165deg, #c9a24d, #e8c547);
    color: #0c1220;
    font-weight: 900;
    text-decoration: none;
}

.art2-footer {
    text-align: center;
    padding: 24px 18px 40px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
}

/* صفحة المقال الواحد */
.page-article-single.art-page-v2 .art2-wrap {
    padding-top: 28px;
}

.art-article-header {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.art-article-header h1 {
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 900;
    line-height: 1.3;
    color: #0f2744 !important;
    margin: 0 0 16px;
}

.art-article-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.95;
    font-weight: 600;
    color: #334155;
}

.art-article-content h2 {
    font-size: 1.3rem;
    color: #0f2744;
    margin: 32px 0 12px;
    font-weight: 900;
}

.art-inline-links a {
    color: #0f2744;
    font-weight: 800;
}

.art-cta-box {
    margin: 40px auto 0;
    max-width: 720px;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f2744, #1a3a5c);
    color: #fff;
    text-align: center;
}

.art-cta-box .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    background: linear-gradient(165deg, #c9a24d, #e8c547);
    color: #0c1220;
    font-weight: 900;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin: 4px;
}

@media (max-width: 768px) {
    .art2-stats {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
    .art2-search {
        flex-direction: column;
    }
    .art2-hero {
        min-height: auto;
        padding-bottom: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .art2-cell { animation: none; opacity: 1; }
    .art-scroll-down__line,
    .art-scroll-down__icon { animation: none; }
    .art2-cell:hover,
    .art-scroll-down:hover { transform: none; }
}
