/* =============================================
   BLOG / ARTICLE STYLESHEET
   AttorneyWebsiteDesign.us
   ============================================= */

/* ---------- BLOG LISTING PAGE ---------- */
.blog-hero {
  background: linear-gradient(135deg, rgba(10,20,45,0.97) 0%, rgba(10,20,45,0.85) 100%),
              url('https://images.unsplash.com/photo-1488590528505-98d2b5aba04b?w=1600&q=80&fit=crop') center/cover no-repeat;
  padding: 110px 0 80px;
}
.blog-hero-inner { max-width: 700px; }
.blog-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(36px,5vw,52px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.blog-hero p   { font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 32px; }

/* Search bar */
.blog-search { display: flex; gap: 12px; max-width: 500px; }
.blog-search input { flex:1; padding: 14px 20px; border:2px solid rgba(255,255,255,0.15); border-radius: 10px; background: rgba(255,255,255,0.08); color:#fff; font-size:15px; outline:none; transition: border-color 0.3s; }
.blog-search input::placeholder { color: rgba(255,255,255,0.4); }
.blog-search input:focus { border-color: var(--gold); }
.blog-search button { padding: 14px 24px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color:#fff; border:none; border-radius:10px; font-weight:600; cursor:pointer; white-space:nowrap; }

/* Featured post */
.blog-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; background: var(--off-white); border: 1px solid var(--gray-200); margin-bottom: 60px; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.blog-featured-img { position: relative; height: 420px; overflow: hidden; }
.blog-featured-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-badge { position: absolute; top:20px; left:20px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color:#fff; font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; padding:6px 14px; border-radius:30px; }
.blog-featured-body { padding: 50px 44px; display:flex; flex-direction:column; justify-content:center; }
.blog-cat { display:inline-block; font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color: var(--gold); margin-bottom:14px; }
.blog-featured-body h2 { font-family:'Playfair Display',serif; font-size: 28px; font-weight:800; color: var(--navy); line-height:1.35; margin-bottom:16px; }
.blog-featured-body h2 a { color:inherit; text-decoration:none; transition:color 0.3s; }
.blog-featured-body h2 a:hover { color: var(--gold); }
.blog-featured-body p { font-size:15px; color: var(--gray-600); line-height:1.8; margin-bottom:24px; flex:1; }
.blog-meta { display:flex; align-items:center; gap:16px; font-size:13px; color: var(--gray-500); flex-wrap:wrap; }
.blog-meta-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.blog-meta-divider { width:4px; height:4px; background: var(--gray-300); border-radius:50%; }
.blog-read-more { display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:700; color: var(--gold); text-decoration:none; margin-top:auto; padding-top:8px; transition:gap 0.3s; }
.blog-read-more:hover { gap:12px; }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.blog-card { background:#fff; border-radius:16px; overflow:hidden; border:1px solid var(--gray-200); box-shadow:0 4px 20px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display:flex; flex-direction:column; }
.blog-card:hover { transform: translateY(-6px); box-shadow:0 20px 50px rgba(0,0,0,0.12); }
.blog-card-img { position:relative; height:200px; overflow:hidden; }
.blog-card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.07); }
.blog-card-tag { position:absolute; top:14px; left:14px; background:rgba(10,20,45,0.8); color:#fff; font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase; padding:4px 12px; border-radius:30px; backdrop-filter:blur(4px); }
.blog-card-body { padding: 24px; display:flex; flex-direction:column; flex:1; }
.blog-card-cat { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--gold); margin-bottom:10px; }
.blog-card-body h3 { font-family:'Playfair Display',serif; font-size:18px; font-weight:700; color:var(--navy); line-height:1.4; margin-bottom:12px; }
.blog-card-body h3 a { color:inherit; text-decoration:none; transition:color 0.3s; }
.blog-card-body h3 a:hover { color:var(--gold); }
.blog-card-body p { font-size:14px; color:var(--gray-600); line-height:1.7; margin-bottom:20px; flex:1; }
.blog-card-footer { display:flex; align-items:center; justify-content:space-between; padding-top:16px; border-top:1px solid var(--gray-100); }
.blog-card-date { font-size:12px; color:var(--gray-400); }
.blog-card-link { font-size:13px; font-weight:700; color:var(--gold); text-decoration:none; display:flex; align-items:center; gap:6px; transition:gap 0.3s; }
.blog-card-link:hover { gap:10px; }

/* Pagination */
.blog-pagination { display:flex; align-items:center; justify-content:center; gap:8px; padding-top:20px; margin-bottom:20px; }
.blog-page-btn { width:40px; height:40px; border-radius:10px; border:2px solid var(--gray-200); background:#fff; color:var(--navy); font-weight:600; font-size:14px; cursor:pointer; transition:all 0.3s; display:flex; align-items:center; justify-content:center; }
.blog-page-btn.active, .blog-page-btn:hover { background:var(--gold); border-color:var(--gold); color:#fff; }

/* ---------- SINGLE ARTICLE ---------- */
.article-hero { position:relative; height: 500px; overflow:hidden; }
.article-hero img { width:100%; height:100%; object-fit:cover; display:block; }
.article-hero-overlay { position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,20,45,0.3) 0%, rgba(10,20,45,0.85) 100%); }
.article-hero-content { position:absolute; bottom:0; left:0; right:0; padding:50px 0; }
.article-hero-content .container { max-width:900px; }
.article-badge { display:inline-flex; align-items:center; gap:8px; background:linear-gradient(135deg,var(--gold),var(--gold-dark)); color:#fff; font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; padding:6px 16px; border-radius:30px; margin-bottom:18px; }
.article-hero-title { font-family:'Playfair Display',serif; font-size:clamp(26px,4vw,42px); font-weight:800; color:#fff; line-height:1.25; margin-bottom:20px; }
.article-hero-meta { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.article-hero-meta .meta-item { display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,0.75); }
.article-hero-meta .meta-item img { width:32px; height:32px; border-radius:50%; object-fit:cover; border:2px solid var(--gold); }
.article-hero-meta .meta-sep { width:4px; height:4px; background:rgba(255,255,255,0.3); border-radius:50%; }

/* Article layout */
.article-layout { display:grid; grid-template-columns:1fr 360px; gap:60px; padding:70px 0 80px; max-width:1200px; margin:0 auto; }
.article-layout .container { max-width:1200px; padding:0 30px; }

.article-content { min-width:0; }
.article-content h2 { font-family:'Playfair Display',serif; font-size:26px; font-weight:800; color:var(--navy); margin:48px 0 18px; padding-top:8px; border-top:3px solid var(--gold); display:inline-block; padding-right:0; }
.article-content h2:first-child { margin-top:0; }
.article-content h3 { font-family:'Playfair Display',serif; font-size:20px; font-weight:700; color:var(--navy); margin:32px 0 14px; }
.article-content p { font-size:16px; color:var(--gray-600); line-height:1.9; margin-bottom:20px; }
.article-content ul, .article-content ol { padding-left:24px; margin-bottom:20px; }
.article-content li { font-size:16px; color:var(--gray-600); line-height:1.9; margin-bottom:8px; }
.article-content ul li::marker { color:var(--gold); }
.article-content strong { color:var(--navy); font-weight:700; }
.article-content a { color:var(--gold); font-weight:600; text-decoration:none; border-bottom:1px solid rgba(201,150,60,0.3); transition:border-color 0.3s; }
.article-content a:hover { border-color:var(--gold); }
.article-img-block { border-radius:16px; overflow:hidden; margin:36px 0; box-shadow:0 8px 40px rgba(0,0,0,0.1); }
.article-img-block img { width:100%; display:block; }
.article-img-caption { font-size:13px; color:var(--gray-400); text-align:center; padding:12px; background:var(--off-white); font-style:italic; }
.article-callout { background:linear-gradient(135deg,rgba(201,150,60,0.08),rgba(201,150,60,0.04)); border-left:4px solid var(--gold); border-radius:0 12px 12px 0; padding:24px 28px; margin:32px 0; }
.article-callout p { margin:0; font-size:16px; font-style:italic; color:var(--navy); }
.article-stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:32px 0; }
.article-stat-box { background:var(--off-white); border-radius:12px; padding:24px; text-align:center; border-bottom:3px solid var(--gold); }
.article-stat-box .num { font-family:'Playfair Display',serif; font-size:32px; font-weight:800; color:var(--navy); }
.article-stat-box .lbl { font-size:12px; color:var(--gray-500); text-transform:uppercase; letter-spacing:1px; margin-top:4px; }

/* Sidebar */
.article-sidebar { display:flex; flex-direction:column; gap:28px; }
.sidebar-widget { background:#fff; border-radius:16px; padding:28px; border:1px solid var(--gray-200); box-shadow:0 4px 20px rgba(0,0,0,0.05); }
.sidebar-widget-title { font-family:'Playfair Display',serif; font-size:17px; font-weight:800; color:var(--navy); margin-bottom:20px; padding-bottom:14px; border-bottom:2px solid var(--gold); }
/* TOC */
.toc-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.toc-list li a { font-size:14px; color:var(--gray-600); text-decoration:none; display:flex; align-items:flex-start; gap:10px; transition:color 0.2s; line-height:1.5; }
.toc-list li a::before { content:''; width:6px; height:6px; background:var(--gold); border-radius:50%; flex-shrink:0; margin-top:7px; }
.toc-list li a:hover { color:var(--gold); }
/* CTA widget */
.sidebar-cta { background:linear-gradient(135deg, var(--navy), #0f2040); border-radius:16px; padding:30px; text-align:center; }
.sidebar-cta h3 { font-family:'Playfair Display',serif; font-size:20px; font-weight:800; color:#fff; margin-bottom:12px; }
.sidebar-cta p { font-size:13px; color:rgba(255,255,255,0.65); line-height:1.7; margin-bottom:20px; }
.sidebar-cta .btn-primary { width:100%; display:block; text-align:center; font-size:14px; padding:14px 20px; }
/* Author widget */
.author-widget { display:flex; flex-direction:column; align-items:center; text-align:center; }
.author-widget img { width:80px; height:80px; border-radius:50%; object-fit:cover; border:3px solid var(--gold); margin-bottom:16px; }
.author-widget .author-name { font-family:'Playfair Display',serif; font-weight:800; color:var(--navy); font-size:18px; margin-bottom:4px; }
.author-widget .author-role { font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--gold); margin-bottom:12px; }
.author-widget .author-bio { font-size:14px; color:var(--gray-600); line-height:1.7; }
/* Related posts */
.related-post { display:flex; gap:14px; align-items:flex-start; padding-bottom:16px; border-bottom:1px solid var(--gray-100); margin-bottom:16px; }
.related-post:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.related-post img { width:64px; height:64px; border-radius:10px; object-fit:cover; flex-shrink:0; }
.related-post-body h4 { font-size:14px; font-weight:700; color:var(--navy); line-height:1.4; margin-bottom:4px; }
.related-post-body h4 a { color:inherit; text-decoration:none; transition:color 0.3s; }
.related-post-body h4 a:hover { color:var(--gold); }
.related-post-body span { font-size:12px; color:var(--gray-400); }

/* Article footer */
.article-tags { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:40px 0 50px; padding-top:40px; border-top:1px solid var(--gray-200); }
.article-tags span { font-size:13px; font-weight:600; color:var(--navy); margin-right:8px; }
.article-tag { font-size:12px; color:var(--gold); background:rgba(201,150,60,0.1); border:1px solid rgba(201,150,60,0.3); border-radius:30px; padding:5px 14px; text-decoration:none; transition:all 0.3s; }
.article-tag:hover { background:var(--gold); color:#fff; }
.article-author-box { display:grid; grid-template-columns:100px 1fr; gap:24px; align-items:center; background:var(--off-white); border-radius:16px; padding:32px; margin-bottom:50px; border-left:4px solid var(--gold); }
.article-author-box img { width:90px; height:90px; border-radius:50%; object-fit:cover; border:3px solid var(--gold); }
.article-author-box .a-name { font-family:'Playfair Display',serif; font-size:20px; font-weight:800; color:var(--navy); }
.article-author-box .a-role { font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--gold); margin-bottom:10px; margin-top:4px; }
.article-author-box .a-bio { font-size:14px; color:var(--gray-600); line-height:1.75; }

/* ---------- 3D MAP SECTION ---------- */
#map-section { padding: 100px 0; background: var(--navy); position:relative; overflow:hidden; }
#map-section::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at center, rgba(201,150,60,0.06) 0%, transparent 70%); pointer-events:none; }
.map-section-header { text-align:center; margin-bottom:60px; }
.map-3d-wrapper { position:relative; max-width:1100px; margin:0 auto; }
.map-3d-frame { border-radius:24px; overflow:hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,150,60,0.2); height: 500px; transform: perspective(1400px) rotateX(8deg) scale(0.97); transform-origin: center bottom; transition: transform 0.5s ease; position:relative; }
.map-3d-frame:hover { transform: perspective(1400px) rotateX(2deg) scale(1); }
.map-3d-frame iframe { width:100%; height:100%; border:none; display:block; }
.map-float-badge { position:absolute; background:rgba(10,20,45,0.92); backdrop-filter:blur(12px); border:1px solid rgba(201,150,60,0.4); border-radius:16px; padding:16px 22px; display:flex; align-items:center; gap:12px; box-shadow:0 8px 30px rgba(0,0,0,0.4); animation:floatBadge 3s ease-in-out infinite; }
.map-float-badge:nth-child(2) { animation-delay:1.5s; }
.map-float-badge .badge-icon { width:40px; height:40px; background:linear-gradient(135deg,var(--gold),var(--gold-dark)); border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.map-float-badge .badge-icon svg { width:20px; height:20px; stroke:#fff; fill:none; stroke-width:2; }
.map-float-badge .badge-num { font-family:'Playfair Display',serif; font-size:20px; font-weight:800; color:#fff; line-height:1; }
.map-float-badge .badge-label { font-size:12px; color:rgba(255,255,255,0.6); }
.badge-pos-1 { top:-20px; left:-20px; }
.badge-pos-2 { top:-20px; right:-20px; }
.badge-pos-3 { bottom:-20px; left:50%; transform:translateX(-50%); }
@keyframes floatBadge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.badge-pos-3 { animation: floatBadgeMid 3s ease-in-out infinite; }
@keyframes floatBadgeMid { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-8px)} }
.map-glow { position:absolute; bottom:-60px; left:50%; transform:translateX(-50%); width:600px; height:120px; background:radial-gradient(ellipse, rgba(201,150,60,0.25) 0%, transparent 70%); pointer-events:none; }
.map-stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:70px; }
.map-stat-item { text-align:center; }
.map-stat-num { font-family:'Playfair Display',serif; font-size:36px; font-weight:800; color:var(--gold); }
.map-stat-label { font-size:13px; color:rgba(255,255,255,0.55); margin-top:6px; text-transform:uppercase; letter-spacing:1px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .blog-featured { grid-template-columns:1fr; }
  .blog-featured-img { height:280px; }
  .blog-grid { grid-template-columns:repeat(2,1fr); }
  .article-layout { grid-template-columns:1fr; }
  .article-sidebar { display:grid; grid-template-columns:repeat(2,1fr); }
  .article-stat-grid { grid-template-columns:repeat(2,1fr); }
  .map-stats-row { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns:1fr; }
  .article-hero { height:360px; }
  .article-sidebar { grid-template-columns:1fr; }
  .article-stat-grid { grid-template-columns:1fr; }
  .article-author-box { grid-template-columns:1fr; text-align:center; }
  .article-author-box img { margin:0 auto; }
  .map-3d-frame { height:320px; }
  .badge-pos-1, .badge-pos-2 { display:none; }
  .map-stats-row { grid-template-columns:repeat(2,1fr); }
}
