/* Copied unchanged from the static site so the blog keeps its design. */
/* Source: blog.html */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --blue-dark:   #0a2a5e;
      --blue-mid:    #1155cc;
      --blue-bright: #1a73e8;
      --blue-light:  #e8f0fe;
      --blue-pale:   #f4f7fe;
      --white:       #ffffff;
      --text:        #1a1a2e;
      --text-soft:   #4a5568;
      --text-muted:  #8a96a8;
      --border:      #d8e2f5;
      --accent:      #ff6b35;
      --radius:      6px;
    }

 
    /* ── Override body for fixed header ── */
    body { padding-top: 0; }

    
    /* ── HERO BANNER WITH HEADER IMAGE ── */
    .blog-hero {
      position: relative;
      padding: clamp(2rem, 7vw, 2.5rem) clamp(1.5rem, 5vw, 4rem);
      overflow: hidden;
      background: #0a1628;
    }
    
    /* Dark overlay sits above the bg image */
    .blog-hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(10,26,80,0.65) 100%);
      z-index: 1;
      pointer-events: none;
    }
    
    /* Background Header Image Overlay */
    .blog-hero-bg-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      
      z-index: 0;
      pointer-events: none;
    }
    
    /* For browsers that support image-set or fallback, ensure overlay works */
    .blog-hero::before {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 400px; height: 400px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
      pointer-events: none;
      z-index: 1;
    }

    .blog-hero::after {
      content: '';
      position: absolute;
      bottom: -40px; left: 10%;
      width: 280px; height: 280px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(26,115,232,0.25) 0%, transparent 70%);
      pointer-events: none;
      z-index: 1;
    }

    /* Grid lines decoration */
    .hero-grid-lines {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none;
      z-index: 1;
    }

    .blog-hero-inner {
      max-width: 1240px;
      margin: auto;
      position: relative;
      z-index: 3;
    }

    .hero-label {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: rgba(255,255,255,0.9);
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0.3rem 0.75rem;
      border-radius: 100px;
      margin-bottom: 1.25rem;
      animation: fadeDown 0.6s ease both;
    }

    @keyframes fadeDown {
      from { opacity: 0; transform: translateY(-10px); }
      to   { opacity: 1; transform: translateY(0); }
    }

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

    .blog-hero h1 {
      font-weight: 800;
      font-size: clamp(2.4rem, 5.5vw, 4rem);
      line-height: 1.05;
      color: #fff;
      letter-spacing: -0.01em;
      max-width: 700px;
      animation: fadeUp 0.7s 0.1s ease both;
    }

    .blog-hero h1 span { color: #7cb9ff; }

    .blog-hero p {
      color: rgba(255,255,255,0.72);
      font-size: 1.0625rem;
      max-width: 580px;
      margin-top: 1rem;
      line-height: 1.7;
      animation: fadeUp 0.7s 0.2s ease both;
    }

  /*  .hero-stats {
      display: flex;
      gap: 2.5rem;
      margin-top: 2.5rem;
      animation: fadeUp 0.7s 0.3s ease both;
      flex-wrap: wrap;
    }

    .hero-stat { text-align: left; }

    .hero-stat .num {
      font-family: 'Montserrat', sans-serif;
      font-weight: 800;
      font-size: 2rem;
      color: #fff;
      line-height: 1;
    }

    .hero-stat .lbl {
      font-size: 0.78rem;
      color: rgba(255,255,255,0.55);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-top: 0.2rem;
    } 

    /* ── SEARCH + FILTER BAR ── */
    .filter-bar {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 120px;
      z-index: 100;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    .filter-inner {
      max-width: 1240px;
      margin: auto;
      padding: 0.85rem clamp(1.5rem, 5vw, 4rem);
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .search-box {
      display: flex;
      align-items: center;
      background: var(--blue-pale);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 0.45rem 0.85rem;
      gap: 0.5rem;
      flex: 1;
      max-width: 300px;
      transition: border-color 0.2s;
    }

    .search-box:focus-within { border-color: var(--blue-bright); }

    .search-box svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }

    .search-box input {
      border: none;
      background: transparent;
      font-size: 0.875rem;
      color: var(--text);
      outline: none;
      width: 100%;
    }

    .search-box input::placeholder { color: var(--text-muted); }

    .filter-cats {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
    }

    .cat-btn {
      padding: 0.35rem 0.85rem;
      border-radius: 100px;
      font-size: 0.8rem;
      font-weight: 500;
      border: 1px solid var(--border);
      background: var(--white);
      color: var(--text-soft);
      cursor: pointer;
      transition: all 0.2s;
    }

    .cat-btn:hover { border-color: var(--blue-bright); color: var(--blue-bright); }

    .cat-btn.active {
      background: var(--blue-bright);
      border-color: var(--blue-bright);
      color: #fff;
    }

    /* ── MAIN LAYOUT ── */
    .main-wrap {
      max-width: 1240px;
      margin: 0 auto;
      padding: 3rem clamp(1.5rem, 5vw, 4rem);
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 3rem;
      align-items: start;
    }

    /* ── FEATURED ARTICLE ── */
    .featured-post {
      background: var(--blue-pale);
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin-bottom: 2.5rem;
      transition: box-shadow 0.3s;
      animation: fadeUp 0.6s ease both;
    }

    .featured-post:hover {
      box-shadow: 0 8px 32px rgba(17,85,204,0.12);
    }

    .featured-img {
      aspect-ratio: 4/3;
      overflow: hidden;
      position: relative;
    }

    .featured-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.5s;
    }

    .featured-post:hover .featured-img img { transform: scale(1.05); }

    .featured-badge {
      position: absolute;
      top: 1rem;
      left: 1rem;
      background: var(--accent);
      color: #fff;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 0.25rem 0.6rem;
      border-radius: 3px;
      z-index: 2;
    }

    .featured-body {
      padding: 2rem 2rem 1.75rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
    }

    .post-cat {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--blue-bright);
      margin-bottom: 0.65rem;
    }

    .featured-body h2 {
      font-weight: 700;
      font-size: 1.65rem;
      line-height: 1.15;
      color: var(--text);
      margin-bottom: 0.85rem;
      letter-spacing: -0.01em;
    }

    .featured-body p {
      font-size: 0.9375rem;
      color: var(--text-soft);
      line-height: 1.7;
      margin-bottom: 1.5rem;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .post-meta {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .post-meta .avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--border);
    }

    .post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

    .read-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      color: var(--blue-bright);
      font-size: 0.875rem;
      font-weight: 600;
      text-decoration: none;
      margin-top: 1rem;
      transition: gap 0.2s;
    }

    .read-link:hover { gap: 0.75rem; }

    /* ── ARTICLE GRID ── */
    .section-label {
      font-weight: 700;
      font-size: 1.1rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--blue-dark);
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .section-label::after {
      content: '';
      flex: 1;
      height: 2px;
      background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
    }

    .article-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }

    .article-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
      animation: fadeUp 0.5s ease both;
      display: flex;
      flex-direction: column;
    }

    .article-card:nth-child(1) { animation-delay: 0.05s; }
    .article-card:nth-child(2) { animation-delay: 0.1s; }
    .article-card:nth-child(3) { animation-delay: 0.15s; }
    .article-card:nth-child(4) { animation-delay: 0.2s; }
    .article-card:nth-child(5) { animation-delay: 0.25s; }
    .article-card:nth-child(6) { animation-delay: 0.3s; }

    .article-card:hover {
      box-shadow: 0 6px 24px rgba(17,85,204,0.1);
      transform: translateY(-3px);
      border-color: var(--blue-bright);
    }

    .card-img-wrap {
      aspect-ratio: 16/9;
      overflow: hidden;
      position: relative;
    }

    .card-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s;
    }

    .article-card:hover .card-img-wrap img { transform: scale(1.05); }

    .card-tag {
      position: absolute;
      top: 0.65rem;
      left: 0.65rem;
      background: var(--blue-dark);
      color: #fff;
      font-size: 0.66rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 0.2rem 0.55rem;
      border-radius: 3px;
    }

    .card-body {
      padding: 1.25rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .card-cat {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--blue-bright);
      margin-bottom: 0.5rem;
    }

    .card-title {
      font-weight: 700;
      font-size: 1.1rem;
      line-height: 1.25;
      color: var(--text);
      margin-bottom: 0.6rem;
      flex: 1;
    }

    .card-excerpt {
      font-size: 0.84rem;
      color: var(--text-soft);
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid var(--border);
      padding-top: 0.75rem;
      font-size: 0.76rem;
      color: var(--text-muted);
    }

    .card-footer a {
      color: var(--blue-bright);
      font-weight: 600;
      text-decoration: none;
      font-size: 0.8rem;
    }

    .card-footer a:hover { text-decoration: underline; }

    /* ── SIDEBAR ── */
    .sidebar { display: flex; flex-direction: column; gap: 1.75rem; }

    .sidebar-widget {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .widget-head {
      background: var(--blue-dark);
      color: #fff;
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 0.75rem 1.25rem;
    }

    .widget-body { padding: 1.25rem; }

    /* Course widget */
    .course-list { display: flex; flex-direction: column; gap: 0.85rem; }

    .course-item {
      display: flex;
      gap: 0.85rem;
      align-items: center;
      padding: 0.75rem;
      background: var(--blue-pale);
      border: 1px solid var(--border);
      border-radius: 5px;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      text-decoration: none;
    }

    .course-item:hover {
      border-color: var(--blue-bright);
      background: #ddeeff;
    }

    .course-icon {
      width: 36px;
      height: 36px;
      background: var(--blue-mid);
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #fff;
      font-weight: 800;
      font-size: 0.75rem;
      letter-spacing: 0.04em;
    }

    .course-info { flex: 1; min-width: 0; }

    .course-name {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.3;
    }

    .course-dur {
      font-size: 0.72rem;
      color: var(--text-muted);
      margin-top: 0.15rem;
    }

    .course-arrow {
      color: var(--blue-bright);
      font-size: 1rem;
      flex-shrink: 0;
    }

    /* Popular posts */
    .pop-list { display: flex; flex-direction: column; }

    .pop-item {
      display: flex;
      gap: 0.85rem;
      padding: 0.85rem 0;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
    }

    .pop-item:last-child { border-bottom: none; padding-bottom: 0; }

    .pop-num {
      font-weight: 800;
      font-size: 1.5rem;
      color: var(--border);
      line-height: 1;
      flex-shrink: 0;
      width: 24px;
    }

    .pop-title {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.4;
      margin-bottom: 0.2rem;
      transition: color 0.2s;
    }

    .pop-item:hover .pop-title { color: var(--blue-bright); }

    .pop-date { font-size: 0.72rem; color: var(--text-muted); }

    /* CTA widget */
    .cta-widget {
      background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
      border-radius: var(--radius);
      padding: 1.75rem 1.5rem;
      text-align: center;
      border: none;
    }

    .cta-widget h3 {
      font-weight: 800;
      font-size: 1.4rem;
      color: #fff;
      line-height: 1.15;
      margin-bottom: 0.65rem;
    }

    .cta-widget p {
      font-size: 0.875rem;
      color: rgba(255,255,255,0.72);
      line-height: 1.6;
      margin-bottom: 1.25rem;
    }

    .cta-btn {
      display: block;
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      font-size: 0.9rem;
      letter-spacing: 0.04em;
      padding: 0.75rem 1.25rem;
      border-radius: 5px;
      text-decoration: none;
      text-align: center;
      transition: background 0.2s, transform 0.15s;
    }

    .cta-btn:hover { background: #e55a27; transform: translateY(-1px); }

    .cta-note {
      font-size: 0.72rem;
      color: rgba(255,255,255,0.5);
      margin-top: 0.65rem;
    }

    /* Tags widget */
    .tags-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }

    .tag-pill {
      padding: 0.3rem 0.7rem;
      background: var(--blue-pale);
      border: 1px solid var(--border);
      border-radius: 3px;
      font-size: 0.78rem;
      color: var(--text-soft);
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }

    .tag-pill:hover {
      background: var(--blue-light);
      border-color: var(--blue-bright);
      color: var(--blue-bright);
    }

    /* ── LIST VIEW ROW ── */
    .list-posts { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }

    .list-row {
      display: grid;
      grid-template-columns: 100px 1fr;
      gap: 1rem;
      padding: 1.1rem;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      transition: box-shadow 0.2s, border-color 0.2s;
      text-decoration: none;
      color: inherit;
      animation: fadeUp 0.5s ease both;
    }

    .list-row:hover {
      box-shadow: 0 4px 16px rgba(17,85,204,0.09);
      border-color: var(--blue-bright);
    }

    .list-thumb {
      width: 100px;
      height: 70px;
      object-fit: cover;
      border-radius: 4px;
    }

    .list-info .list-cat {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--blue-bright);
      margin-bottom: 0.3rem;
    }

    .list-title {
      font-weight: 700;
      font-size: 1rem;
      line-height: 1.25;
      color: var(--text);
      margin-bottom: 0.25rem;
      transition: color 0.2s;
    }

    .list-row:hover .list-title { color: var(--blue-bright); }

    .list-meta { font-size: 0.75rem; color: var(--text-muted); }
    
    .page-btn:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
    .page-btn.active { background: var(--blue-bright); border-color: var(--blue-bright); color: #fff; }
    .page-btn.wide { width: auto; padding: 0 0.85rem; }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem;
    }
    .gallery-item {
      position: relative;
      border-radius: 6px;
      overflow: hidden;
      cursor: pointer;
      aspect-ratio: 1/1;
    }
    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
    .gallery-item:hover img {
      transform: scale(1.05);
    }
    .gallery-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(10,42,94,0.7), transparent);
      opacity: 0;
      transition: opacity 0.3s;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 0.5rem;
    }
    .gallery-item:hover .gallery-overlay {
      opacity: 1;
    }
    .gallery-caption {
      color: white;
      font-size: 0.7rem;
      font-weight: 600;
      text-align: center;
      background: rgba(0,0,0,0.5);
      padding: 0.2rem 0.4rem;
      border-radius: 4px;
      width: 100%;
    }
    .gallery-more {
      margin-top: 0.75rem;
      text-align: center;
    }
    .gallery-more a {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--blue-bright);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }
    .gallery-more a:hover {
      gap: 0.5rem;
    }


    /* ── NEWSLETTER STRIP ── */
    .newsletter-strip {
      background: var(--blue-pale);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
    }

    .newsletter-inner {
      max-width: 1240px;
      margin: auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
    }

    .nl-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--blue-bright);
      margin-bottom: 0.75rem;
    }

    .nl-head {
      font-weight: 800;
      font-size: clamp(1.75rem, 3vw, 2.5rem);
      line-height: 1.1;
      color: var(--blue-dark);
      margin-bottom: 0.75rem;
    }

    .nl-sub {
      font-size: 0.9375rem;
      color: var(--text-soft);
      line-height: 1.7;
    }

    .nl-form { display: flex; flex-direction: column; gap: 0.75rem; }

    .nl-form input {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 0.825rem 1rem;
      font-size: 0.9375rem;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }

    .nl-form input:focus {
      border-color: var(--blue-bright);
      box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
    }

    .nl-form input::placeholder { color: var(--text-muted); }

    .nl-form button {
      background: var(--blue-bright);
      color: #fff;
      border: none;
      border-radius: var(--radius);
      padding: 0.825rem 1.5rem;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.03em;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s;
    }

    .nl-form button:hover { background: var(--blue-mid); transform: translateY(-1px); }

    .nl-note { font-size: 0.75rem; color: var(--text-muted); }

    /* ── RESPONSIVE ── */
    @media (max-width: 1024px) {
      .main-wrap { grid-template-columns: 1fr; }
      .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 768px) {
      .featured-post { grid-template-columns: 1fr; }
      .featured-img { aspect-ratio: 16/9; min-height: 0; }
      .article-grid { grid-template-columns: 1fr; }
      .newsletter-inner { grid-template-columns: 1fr; }
      
      .sidebar { grid-template-columns: 1fr; }
      nav a:not(.nav-enroll):not(.active) { display: none; }
    }

    @media (max-width: 500px) {
      .hero-stats { gap: 1.5rem; }
    }
  