/* New legal portal theme (landing + article) */
:root {
    --bg: #0b1f36;
    --bg-light: #0f2a4d;
    --bg-soft: #f5f7fa;
    --panel: #0f2c52;
    --panel-soft: #123763;
    --accent: #f2a007;
    --accent-soft: #f7c35c;
    --text: #0c1a2b;
    --muted: #566b85;
    --card: #ffffff;
    --shadow: 0 20px 60px rgba(6, 20, 41, 0.18);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --space: 16px;
    --space-lg: 24px;
    --space-xl: 36px;
    --max: 1240px;
    --font: 'Cairo', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.new-landing { font-family: var(--font); background: var(--bg-soft); color: var(--text); line-height: 1.7; }

.header-bar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(12,26,43,0.06); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: 0.5px; }
.brand-icon { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #194a82, #0c2f58); display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow); }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost, .btn-solid { border: 1px solid rgba(12,26,43,0.12); border-radius: 12px; padding: 10px 14px; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: 0.25s ease; }
.btn-solid { background: linear-gradient(135deg, #1a6bb7, #0f447a); color: #fff; border: none; box-shadow: 0 12px 35px rgba(15,68,122,0.25); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(15,68,122,0.35); }
.btn-ghost { color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: rgba(15,68,122,0.4); color: #0f447a; }

.hero-wrap { background: linear-gradient(135deg, #0f2c52 0%, #1a6bb7 100%); color: #fff; position: relative; overflow: hidden; border-radius: 0 0 28px 28px; box-shadow: 0 30px 90px rgba(12,26,43,0.22); }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 68px 18px 88px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero-text h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; letter-spacing: 0.2px; }
.hero-text p { font-size: 17px; opacity: 0.9; margin-bottom: 28px; }
.search-bar { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; padding: 10px; display: flex; align-items: center; gap: 10px; box-shadow: 0 18px 40px rgba(0,0,0,0.12); backdrop-filter: blur(8px); }
.search-bar input { flex: 1; padding: 14px 16px; border: none; background: rgba(255,255,255,0.14); color: #fff; font-size: 15px; border-radius: 12px; outline: none; }
.search-bar input::placeholder { color: rgba(255,255,255,0.7); }
.search-bar button { padding: 14px 18px; border: none; border-radius: 12px; background: var(--accent); color: #0c1a2b; font-weight: 800; cursor: pointer; box-shadow: 0 12px 30px rgba(242,160,7,0.35); transition: 0.25s ease; }
.search-bar button:hover { transform: translateY(-2px); }
.hero-badges { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badge { background: rgba(255,255,255,0.14); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: #e7edf5; border: 1px solid rgba(255,255,255,0.22); }
.hero-visual { justify-self: end; }
.hero-card { background: #fff; color: var(--text); border-radius: 18px; padding: 18px; min-height: 280px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.hero-metric { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #f7fbff; border: 1px solid rgba(12,26,43,0.06); }
.hero-metric strong { font-size: 22px; color: #0f447a; }

.quick-nav { max-width: var(--max); margin: -42px auto 24px; padding: 0 18px; }
.quick-nav-bar { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.quick-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: #f7fbff; color: var(--text); text-decoration: none; font-weight: 700; border: 1px solid rgba(12,26,43,0.06); transition: 0.2s ease; }
.quick-link:hover { border-color: rgba(15,68,122,0.3); transform: translateY(-2px); }

.section { max-width: var(--max); margin: 0 auto; padding: 18px; }
.section + .section { margin-top: 16px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-header h2 { font-size: 22px; font-weight: 800; color: var(--text); }
.section-header p { color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 14px; }
.grid.features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(12,26,43,0.05); transition: 0.25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(12,26,43,0.16); }
.card h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.card p { color: var(--muted); font-size: 14px; }
.card .icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #f2f6fb; color: #0f447a; margin-bottom: 10px; }

.stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; }
.stat { padding: 18px; background: #0f2c52; color: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 26px; margin: 4px 0; }
.stat span { opacity: 0.85; }

.cta { background: linear-gradient(120deg, #0f447a, #1a6bb7); color: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 12px; align-items: center; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-light { background: #fff; color: #0f447a; border-radius: 12px; padding: 12px 16px; text-decoration: none; font-weight: 800; box-shadow: 0 12px 30px rgba(255,255,255,0.28); }
.btn-light:hover { transform: translateY(-2px); }

.footer { margin-top: 28px; padding: 22px 18px 40px; background: #0b1f36; color: #e6edf5; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer a { color: #f7c35c; text-decoration: none; }

/* Law article view */
.article-shell { max-width: 980px; margin: 24px auto; padding: 0 18px 40px; }
.article-hero { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(12,26,43,0.05); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.article-title { font-size: 22px; font-weight: 800; color: #0f2c52; }
.article-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-soft { background: #f2f6fb; color: #0f447a; padding: 6px 12px; border-radius: 999px; font-weight: 700; }
.btn-line { border: 1px solid rgba(12,26,43,0.12); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: #0f447a; background: #fff; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.btn-line:hover { border-color: rgba(15,68,122,0.5); }

.article-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(12,26,43,0.06); }
.article-card h3 { font-size: 18px; margin-bottom: 10px; color: #0f2c52; }
.article-body { background: #0f2c52; color: #e8eef6; border-radius: 14px; padding: 18px; min-height: 240px; line-height: 1.9; }
.article-body p { margin-bottom: 12px; }

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .header-inner { flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .search-bar { flex-direction: column; align-items: stretch; }
    .search-bar button { width: 100%; }
    .hero-inner { padding: 46px 16px 64px; }
    .quick-nav { margin-top: -32px; }
}
