/* =====================================================
       BLOG PAGE — UNIQUE NEW STYLES ONLY
       Nav, footer, .btn-primary, .btn-secondary, .container,
       .practice-badge, form elements etc. → already in styles.css
    ===================================================== */

    /* ── ANIMATION ───────────────────────────────────── */
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .anim-fade-up    { animation: fadeInUp .7s ease both; }
    .anim-delay-1    { animation-delay: .1s; }
    .anim-delay-2    { animation-delay: .22s; }
    .anim-delay-3    { animation-delay: .34s; }

    /* ── BLOG HERO ───────────────────────────────────── */
    .blog-hero {
      padding-top: 100px;
      background: radial-gradient(141.42% 141.42% at 100% 0%,
        rgba(226,180,54,.13) 0%, rgba(189,150,40,.06) 35%, transparent 65%);
      position: relative;
      overflow: hidden;
    }
    .blog-hero::before {
      content: '';
      position: absolute;
      top: -200px; left: -200px;
      width: 600px; height: 600px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(189,150,40,.06) 0%, transparent 70%);
      pointer-events: none;
    }
    .blog-hero-inner {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 40px;
      flex-wrap: wrap;
    }
    .blog-hero-left { flex: 1; min-width: 300px; }

    .blog-hero-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.4rem, 5vw, 4rem);
      font-weight: 800;
      line-height: 1.1;
      color: #0B131E;
      margin-bottom: 18px;
    }
    .blog-hero-title .gold { color: #BD9628; }

    .blog-hero-desc {
      font-size: 1.05rem;
      color: #45546E;
      line-height: 1.75;
      max-width: 520px;
      margin-bottom: 32px;
    }

    .blog-hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
    .hero-stat-pill {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      border-radius: 12px;
      border: 1px solid rgba(189,150,40,.20);
      background: rgba(255,255,255,.85);
      backdrop-filter: blur(8px);
      font-size: 14px;
      font-weight: 600;
      color: #0B131E;
    }
    .hero-stat-pill .num { color: #BD9628; font-size: 17px; font-weight: 700; }

    .blog-search-wrapper {
      display: flex;
      border-radius: 14px;
      border: 1.5px solid rgba(189,150,40,.25);
      background: #fff;
      box-shadow: 0 8px 30px rgba(189,150,40,.10);
      overflow: hidden;
      min-width: 320px;
      max-width: 390px;
      flex-shrink: 0;
    }
    .blog-search-input {
      flex: 1;
      border: none; outline: none;
      padding: 14px 18px;
      font-size: 15px;
      background: transparent;
      color: #0B131E;
    }
    .blog-search-input::placeholder { color: #9CA3AF; }
    .blog-search-btn {
      padding: 14px 22px;
      background: linear-gradient(112deg, #BD9628 0%, #DDB23C 100%);
      border: none; cursor: pointer;
      color: #fff; font-size: 16px;
      transition: opacity .3s;
    }
    .blog-search-btn:hover { opacity: .85; }

    /* ── CATEGORY TABS ───────────────────────────────── */
    .categories-section {
      padding: 32px 0 0;
      border-bottom: 1px solid rgba(229,231,235,.8);
    }
    .categories-scroll {
      display: flex; gap: 6px;
      overflow-x: auto; scrollbar-width: none;
    }
    .categories-scroll::-webkit-scrollbar { display: none; }

    .cat-btn {
      flex-shrink: 0;
      padding: 10px 20px;
      border-radius: 10px 10px 0 0;
      border: 1px solid transparent;
      background: transparent;
      font-size: 14px; font-weight: 500;
      color: #45546E; cursor: pointer;
      transition: color .25s;
      white-space: nowrap; border-bottom: none;
    }
    .cat-btn:hover { color: #BD9628; }
    .cat-btn.active {
      background: #fff;
      border-color: rgba(229,231,235,.8);
      border-bottom-color: #fff;
      color: #BD9628; font-weight: 700;
      margin-bottom: -1px; padding-bottom: 11px;
    }
    .blog-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: 48px;
      align-items: start;
    }

    /* ── SECTION HEADER ──────────────────────────────── */
    .blog-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 26px;
      flex-wrap: wrap; gap: 10px;
    }
    .blog-section-label {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 18px; font-weight: 700; color: #0B131E;
    }
    .blog-section-label::before {
      content: '';
      display: block;
      width: 4px; height: 22px;
      border-radius: 2px;
      background: linear-gradient(180deg, #BD9628 0%, #DDB23C 100%);
    }
    .view-all-link {
      font-size: 14px; font-weight: 600;
      color: #BD9628; text-decoration: none;
      display: flex; align-items: center;
      gap: 6px; transition: gap .2s;
    }
    .view-all-link:hover { gap: 10px; }

    /* ── FEATURED ARTICLE ────────────────────────────── */
    .featured-article {
      border-radius: 24px;
      border: 1px solid rgba(189,150,40,.15);
      background: #fff;
      box-shadow: 0 4px 30px rgba(11,19,30,.07);
      overflow: hidden;
      margin-bottom: 36px;
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      min-height: 380px;
      transition: transform .3s ease, box-shadow .3s ease;
    }
    .featured-article:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 50px rgba(11,19,30,.12);
    }
    .featured-img {
      position: relative; overflow: hidden;
      display: flex; align-items: center; justify-content: center;
      min-height: 300px;
    }
    .featured-img-bg {
      position: absolute; inset: 0;
    }
    .featured-img-pattern {
      position: absolute; inset: 0;
        background-image: url('./images/Blog1.jpeg');
        background-position: center;
        background-size: cover;
    }
    .featured-img-content {
      position: relative; z-index: 2;
      text-align: center; padding: 40px 30px; color: #fff;
    }
    .featured-img-icon { font-size: 56px; margin-bottom: 16px; opacity: .9; }
    .featured-img-label { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; opacity: .75; }
    .featured-badge {
      position: absolute; top: 20px; left: 20px; z-index: 3;
      display: inline-flex; align-items: center; gap: 5px;
      padding: 5px 14px; border-radius: 9999px;
      background: linear-gradient(112deg, #BD9628 0%, #DDB23C 100%);
      color: #fff; font-size: 11px; font-weight: 700;
      letter-spacing: 1.5px; text-transform: uppercase;
    }
    .featured-body {
      padding: 36px;
      display: flex; flex-direction: column;
      justify-content: space-between;
    }
    .featured-meta {
      display: flex; align-items: center;
      gap: 14px; margin-bottom: 14px; flex-wrap: wrap;
    }
    .article-category {
      font-size: 12px; font-weight: 700;
      letter-spacing: 1px; text-transform: uppercase;
      color: #BD9628; padding: 4px 12px;
      border-radius: 6px; background: rgba(189,150,40,.10);
    }
    .article-date, .article-read-time {
      font-size: 13px; color: #9CA3AF;
      display: flex; align-items: center; gap: 5px;
    }
    .featured-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.7rem; font-weight: 700;
      line-height: 1.25; color: #0B131E; margin-bottom: 14px;
    }
    .featured-excerpt {
      font-size: 15px; color: #45546E;
      line-height: 1.7; margin-bottom: 24px;
    }
    .featured-footer {
      display: flex; align-items: center;
      justify-content: space-between; gap: 12px; flex-wrap: wrap;
    }
    .author-chip { display: flex; align-items: center; gap: 10px; }
    .author-avatar {
      width: 38px; height: 38px; border-radius: 50%;
      background: linear-gradient(135deg, #BD9628, #8B6914);
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0;
    }
    .author-info { display: flex; flex-direction: column; }
    .author-name { font-size: 14px; font-weight: 600; color: #0B131E; }
    .author-role { font-size: 12px; color: #45546E; }
    .read-more-btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 11px 22px; border-radius: 10px;
      background: linear-gradient(100deg, #BD9628 0%, #DDB23C 100%);
      color: #fff; font-size: 14px; font-weight: 600;
      text-decoration: none; transition: all .3s; white-space: nowrap;
    }
    .read-more-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(189,150,40,.35); }

    /* ── BLOG CARDS ──────────────────────────────────── */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px; margin-bottom: 40px;
    }
    .blog-card {
      border-radius: 20px;
      border: 1px solid rgba(189,150,40,.15);
      background: rgba(255,255,255,.85);
      box-shadow: 0 4px 20px rgba(11,19,30,.06);
      backdrop-filter: blur(10px);
      overflow: hidden;
      display: flex; flex-direction: column;
      transition: transform .3s ease, box-shadow .3s ease;
    }
    .blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(11,19,30,.10); }

    .blog-card-img {
      height: 180px; position: relative; overflow: hidden;
      display: flex; align-items: center; justify-content: center;
    }
    .card-img-bg   { position: absolute; inset: 0; }
    .card-img-pattern {
      position: absolute; inset: 0;
              background-image: url('./images/Blog1.jpeg');
        background-position: center;
        background-size: cover;
    }
        .card-img-pattern2 {
      position: absolute; inset: 0;
              background-image: url('./images/legal-risks-ai-acceptable-use-policy.png');
        background-position: center;
        background-size: cover;
    }
    .card-img-icon { position: relative; z-index: 2; font-size: 36px; color: rgba(255,255,255,.9); }

    /* Card colour themes */
    .theme-gold      { background: linear-gradient(135deg, #BD9628 0%, #8B6914 100%); }
    .theme-navy      { background: linear-gradient(135deg, #0B131E 0%, #1a2d4a 100%); }
    .theme-slate     { background: linear-gradient(135deg, #45546E 0%, #2c3a50 100%); }
    .theme-amber     { background: linear-gradient(135deg, #d4841a 0%, #9a5f0e 100%); }
    .theme-bronze    { background: linear-gradient(135deg, #9B6E3A 0%, #6B4A24 100%); }
    .theme-dark-gold { background: linear-gradient(135deg, #c8a94a 0%, #7d5f0e 100%); }

    .blog-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
    .card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
    .card-category {
      font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
      color: #BD9628; padding: 3px 10px; border-radius: 5px; background: rgba(189,150,40,.10);
    }
    .card-date { font-size: 12px; color: #9CA3AF; display: flex; align-items: center; gap: 4px; }
    .card-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.08rem; font-weight: 700;
      color: #0B131E; line-height: 1.35;
      margin-bottom: 10px; transition: color .25s;
    }
    .blog-card:hover .card-title { color: #BD9628; }
    .card-excerpt { font-size: 14px; color: #45546E; line-height: 1.65; margin-bottom: 18px; flex: 1; }
    .card-footer {
      display: flex; align-items: center; justify-content: space-between;
      padding-top: 14px; border-top: 1px solid rgba(229,231,235,.7);
    }
    .card-author-mini { display: flex; align-items: center; gap: 8px; }
    .mini-avatar {
      width: 30px; height: 30px; border-radius: 50%;
      background: linear-gradient(135deg, #BD9628, #8B6914);
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
    }
    .mini-author-name { font-size: 13px; font-weight: 600; color: #0B131E; }
    .card-read-time { font-size: 12px; color: #9CA3AF; display: flex; align-items: center; gap: 4px; }

    /* ── LOAD MORE ───────────────────────────────────── */
    .load-more-wrapper { display: flex; justify-content: center; margin-block: 50px; }
    .load-more-btn {
      padding: 14px 40px; border-radius: 12px;
      border: 1.5px solid #BD9628; background: #fff;
      color: #BD9628; font-size: 15px; font-weight: 600;
      cursor: pointer; display: flex; align-items: center; gap: 8px;
      transition: all .3s;
    }
    .load-more-btn:hover {
      background: linear-gradient(100deg, #BD9628 0%, #DDB23C 100%);
      color: #fff; border-color: transparent;
      transform: translateY(-2px); box-shadow: 0 8px 25px rgba(189,150,40,.3);
    }

    /* ── CTA BANNER ──────────────────────────────────── */
    .cta-blog-banner {
      padding: 52px 48px;
      border-radius: 24px;
      background: linear-gradient(135deg, #0B131E 0%, #1a2d4a 60%, #0f1e30 100%);
      border: 1px solid rgba(189,150,40,.25);
      display: flex; align-items: center;
      justify-content: space-between; gap: 30px; flex-wrap: wrap;
      position: relative; overflow: hidden;
    }
    .cta-blog-banner::before {
      content: '';
      position: absolute; top: -80px; right: -80px;
      width: 300px; height: 300px; border-radius: 50%;
      background: radial-gradient(circle, rgba(189,150,40,.15) 0%, transparent 70%);
    }
    .cta-blog-banner-text { position: relative; z-index: 2; }
    .cta-blog-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #BD9628; margin-bottom: 10px; }
    .cta-blog-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
      color: #fff; line-height: 1.25; margin-bottom: 10px;
    }
    .cta-blog-desc { font-size: 15px; color: rgba(255,255,255,.60); max-width: 480px; line-height: 1.6; }
    .cta-blog-actions {
      display: flex; gap: 14px; align-items: center;
      flex-wrap: wrap; flex-shrink: 0; position: relative; z-index: 2;
    }
    .cta-gold-btn {
      padding: 14px 30px; border-radius: 12px;
      background: linear-gradient(100deg, #BD9628 0%, #DDB23C 100%);
      color: #fff; font-size: 15px; font-weight: 700;
      border: none; cursor: pointer;
      display: flex; align-items: center; gap: 8px;
      transition: all .3s; white-space: nowrap; text-decoration: none;
    }
    .cta-gold-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(189,150,40,.4); }
    .cta-outline-btn {
      padding: 13px 28px; border-radius: 12px;
      border: 1.5px solid rgba(255,255,255,.25);
      background: transparent; color: #fff;
      font-size: 15px; font-weight: 600; cursor: pointer;
      transition: all .3s; white-space: nowrap; text-decoration: none;
    }
    .cta-outline-btn:hover { border-color: #BD9628; background: rgba(189,150,40,.1); }

    /* ── SIDEBAR ─────────────────────────────────────── */
    .blog-sidebar {
      display: flex; flex-direction: column; gap: 26px;
      position: sticky; top: 90px;
    }
    .sidebar-widget {
      border-radius: 20px;
      border: 1px solid rgba(189,150,40,.15);
      background: rgba(255,255,255,.85);
      box-shadow: 0 4px 20px rgba(11,19,30,.06);
      backdrop-filter: blur(10px);
      overflow: hidden;
    }
    .widget-header {
      padding: 18px 22px 16px;
      border-bottom: 1px solid rgba(229,231,235,.6);
      display: flex; align-items: center; gap: 10px;
      font-size: 16px; font-weight: 700; color: #0B131E;
    }
    .widget-header i { color: #BD9628; }
    .widget-body { padding: 18px 22px; }

    /* Dark newsletter widget */
    .newsletter-widget { background: linear-gradient(135deg, #0B131E 0%, #1a2d4a 100%); border: none; }
    .newsletter-widget .widget-header { border-bottom-color: rgba(255,255,255,.10); color: #fff; }
    .newsletter-widget .widget-body { padding: 18px 22px 24px; }
    .newsletter-desc { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 16px; }
    .newsletter-input-wrap { display: flex; flex-direction: column; gap: 10px; }
    .nl-input {
      width: 100%; padding: 12px 14px; border-radius: 10px;
      border: 1px solid rgba(255,255,255,.15);
      background: rgba(255,255,255,.08);
      color: #fff; font-size: 14px; outline: none; transition: border-color .3s;
    }
    .nl-input::placeholder { color: rgba(255,255,255,.40); }
    .nl-input:focus { border-color: #BD9628; }
    .nl-btn {
      width: 100%; padding: 12px; border-radius: 10px; border: none;
      background: linear-gradient(100deg, #BD9628 0%, #DDB23C 100%);
      color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .3s;
    }
    .nl-btn:hover { box-shadow: 0 6px 20px rgba(189,150,40,.4); transform: translateY(-1px); }

    /* Topics */
    .topics-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .topic-tag {
      padding: 7px 14px; border-radius: 8px;
      border: 1px solid rgba(189,150,40,.20);
      background: rgba(189,150,40,.08);
      color: #BD9628; font-size: 13px; font-weight: 600;
      cursor: pointer; transition: all .25s;
    }
    .topic-tag:hover { background: #BD9628; color: #fff; border-color: transparent; }

    /* Popular posts */
    .popular-posts { display: flex; flex-direction: column; gap: 16px; }
    .popular-post {
      display: flex; gap: 14px; align-items: flex-start;
      padding-bottom: 16px; border-bottom: 1px solid rgba(229,231,235,.7);
      cursor: pointer;
    }
    .popular-post:last-child { border-bottom: none; padding-bottom: 0; }
    .popular-post:hover .pp-title { color: #BD9628; }
    .pp-number {
      width: 32px; height: 32px; border-radius: 8px;
      background: rgba(189,150,40,.10); color: #BD9628;
      font-size: 14px; font-weight: 800;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; margin-top: 2px;
    }
    .pp-title { font-size: 13px; font-weight: 600; color: #0B131E; line-height: 1.4; margin-bottom: 4px; transition: color .25s; }
    .pp-meta { font-size: 11px; color: #9CA3AF; display: flex; align-items: center; gap: 6px; }

    /* Regulatory alerts */
    .update-list { display: flex; flex-direction: column; gap: 10px; }
    .update-item {
      display: flex; gap: 12px; align-items: flex-start;
      padding: 12px; border-radius: 12px;
      background: rgba(189,150,40,.07); border: 1px solid rgba(189,150,40,.15);
      cursor: pointer; transition: background .25s;
    }
    .update-item:hover { background: rgba(189,150,40,.14); }
    .update-dot { width: 8px; height: 8px; border-radius: 50%; background: #BD9628; margin-top: 5px; flex-shrink: 0; }
    .update-text { font-size: 13px; color: #0B131E; line-height: 1.45; font-weight: 500; }
    .update-date { font-size: 11px; color: #45546E; margin-top: 3px; }

    /* ── RESPONSIVE ──────────────────────────────────── */
    @media (max-width: 1100px) {
      .blog-layout { grid-template-columns: 1fr; }
      .blog-sidebar { position: static; }
    }
    @media (max-width: 900px) {
      .featured-article { grid-template-columns: 1fr; }
      .featured-img { min-height: 200px; }
      .blog-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 640px) {
      .blog-hero-inner   { flex-direction: column; align-items: flex-start; }
      .blog-search-wrapper { width: 100%; max-width: 100%; min-width: unset; }
      .cta-blog-banner   { padding: 32px 22px; }
      .featured-body     { padding: 22px 20px 20px; }
      .featured-title    { font-size: 1.3rem; }
      .blog-hero-title   { font-size: 2.1rem; }
      .cta-blog-actions {
            display: flex;
            gap: 14px;
            align-items: center;
            flex-wrap: wrap;
            flex-shrink: 0;
            position: relative;
            z-index: 2;
            flex-direction: column;
            width: 100%;
        }
    }

    /* ==================== SEARCH BAR SECTION ==================== */
.blog-search-section {
  margin-bottom: 40px;
  border-radius: 20px;
  text-align: left;
}

.search-container {
  max-width: 600px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  border: 2px solid rgba(189,150,40,0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.search-wrapper:focus-within {
  border-color: #BD9628;
  box-shadow: 0 8px 20px rgba(189,150,40,0.15);
  transform: translateY(-2px);
}

.search-icon {
  padding: 0 16px;
  color: #9CA3AF;
  font-size: 16px;
}

.blog-search-input {
  flex: 1;
  padding: 16px 0;
  border: none;
  outline: none;
  font-size: 16px;
  color: #0B131E;
  background: transparent;
}

.blog-search-input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.blog-search-submit {
  padding: 16px 28px;
  background: linear-gradient(112deg, #BD9628 0%, #DDB23C 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.blog-search-submit:hover {
  background: linear-gradient(112deg, #DDB23C 0%, #BD9628 100%);
  padding: 16px 32px;
}

.search-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  padding: 0 8px;
}

.search-filter-label {
  font-size: 13px;
  color: #45546E;
  font-weight: 500;
  margin-right: 4px;
}

.search-filter-tag {
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(189,150,40,0.2);
  background: transparent;
  color: #45546E;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-filter-tag:hover {
  border-color: #BD9628;
  color: #BD9628;
  background: rgba(189,150,40,0.05);
}

.search-filter-tag.active {
  background: #BD9628;
  color: #fff;
  border-color: #BD9628;
}

.search-results-count {
  font-size: 14px;
  color: #9CA3AF;
  font-weight: 400;
}

.no-results-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(189,150,40,0.03);
  border-radius: 16px;
  border: 1px dashed rgba(189,150,40,0.2);
}

.no-results-message i {
  font-size: 48px;
  color: #BD9628;
  opacity: 0.5;
  margin-bottom: 16px;
}

.no-results-message p {
  font-size: 18px;
  color: #0B131E;
  margin-bottom: 8px;
}

.no-results-message span {
  font-size: 14px;
  color: #45546E;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .search-wrapper {
    flex-wrap: wrap;
  }
  
  .search-icon {
    display: none;
  }
  
  .blog-search-input {
    width: 100%;
    padding: 16px 20px;
  }
  
  .blog-search-submit {
    width: 100%;
    padding: 14px 20px;
  }
  
  .blog-search-submit:hover {
    padding: 14px 20px;
  }
  
  .search-filters {
    justify-content: center;
  }
}