.doc-search {
            position: sticky;
            top: 0;
            background: #f1f3f4;
            padding: 8px;
            border-bottom: 1px solid #ccc;
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 999;
        }

        .doc-search input {
            flex: 1;
            padding: 6px 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            outline: none;
        }

        .doc-search input:focus {
            border-color: #1a73e8;
        }

        .doc-search button {
            border: none;
            background: #fff;
            padding: 5px 8px;
            cursor: pointer;
            border-radius: 4px;
        }

        .doc-search button:hover {
            background: #e0e0e0;
        }

        #resultCount {
            font-size: 13px;
            color: #555;
            min-width: 50px;
            text-align: center;
        }

        ::selection {
            background: yellow !important;
            color: black !important;
        }

        ::-moz-selection {
            background: yellow !important;
            color: black !important;
        }

        mark.highlight {
            background: yellow;
            color: black;
        }

        mark.active {
            background: orange;
        }

        #resultCount {
            font-size: 13px;
            color: #555;
            min-width: 60px;
        }

        body {
      background-color: #ffffff;
    }

    .navbar {
      border-bottom: 1px solid #e5e7eb;
      background: #fff !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
    }

    main {
      padding-top: 80px;
      /* offset for fixed nav */
    }

    /* TABS */
    .tab-wrapper {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .tab-nav {
      display: flex;
      gap: 30px;
      justify-content: flex-start;
      /* align left like image */
      border-bottom: 1px solid #e5e7eb;
    }

    .tab-btn {
      background: none;
      border: none;
      padding: 12px 0;
      font-size: 15px;
      font-weight: 600;
      color: #6b7280;
      cursor: pointer;
      position: relative;
    }

    /* Hover */
    .tab-btn:hover {
      color: #111827;
    }

    /* Active tab */
    .tab-btn.active {
      color: #4a41c4;
      /* purple/blue like image */
    }

    /* Bottom underline */
    .tab-btn.active::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -1px;
      width: 100%;
      height: 3px;
      background: #4f46e5;
      border-radius: 2px;
    }

    .res-content {
      display: none;
    }

    .res-content.active {
      display: block;
    }

    /* DOCS LAYOUT */
    .doc-layout {
      display: flex;
      width: 100%;
      margin: 0 auto;
      min-height: calc(100vh - 150px);
    }

    .doc-sidebar {
      width: 260px;
      height: 100vh;
      padding: 20px 16px;
      background: #f9fafb;
      border-right: 1px solid #e5e7eb;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    /* Title */
    .sidebar-title {
      font-size: 14px;
      font-weight: 600;
      color: #6b7280;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* Group spacing */
    .menu-group {
      margin-bottom: 12px;
    }

    /* Section title */
    .menu-title {
      font-size: 14px;
      font-weight: 600;
      color: #111827;
      padding: 8px 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      border-radius: 6px;
    }

    /* Hover */
    .menu-title:hover {
      background: #f3f4f6;
    }

    /* Arrow */
    .menu-title::before {
      content: "›";
      font-size: 14px;
      margin-right: 8px;
      transition: transform 0.2s ease;
      color: #6b7280;
    }

    /* Rotate arrow */
    .menu-group.open .menu-title::before {
      transform: rotate(90deg);
    }

    /* Submenu */
    .submenu {
      margin-left: 18px;
      margin-top: 4px;
      display: none;
    }

    /* Show when open */
    .menu-group.open .submenu {
      display: block;
    }

    /* Links */
    .submenu a {
      display: block;
      font-size: 13.5px;
      color: #4b5563;
      padding: 6px 8px;
      text-decoration: none;
      border-radius: 5px;
    }

    /* Hover */
    .submenu a:hover {
      background: #eef2f7;
      color: #111827;
    }

    /* Active item */
    .submenu a.active {
      background: #e6f0f7;
      color: #0369a1;
      font-weight: 500;
      border-left: 2px solid #0284c7;
      padding-left: 6px;
    }

    .doc-content {
      flex-grow: 1;
      padding: 0;
      background: #ffffff;
      height: calc(100vh - 100px);
    }

    .doc-content iframe {
      width: 100%;
      height: 100%;
      border: none;
    }

    /* DOWNLOADS */
    .simple-section {
      max-width: 1000px;
      margin: 40px auto;
      padding: 0 20px;
    }

    .simple-card {
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      padding: 30px;
      margin-bottom: 30px;
      background: #fff;
      display: flex;
      gap: 40px;
      align-items: center;
    }

    .simple-card-left {
      flex: 1;
    }

    .simple-card-right {
      flex: 2;
    }

    .simple-card h2 {
      font-size: 24px;
      margin: 0;
      color: #111827;
    }

    .simple-card h3 {
      font-size: 18px;
      font-weight: 500;
      margin-bottom: 15px;
      color: #374151;
    }

    .simple-card p {
      color: #6b7280;
      margin-bottom: 20px;
      font-size: 15px;
    }

    .btn-simple {
      display: inline-block;
      background: #0056b3;
      color: #fff;
      padding: 10px 20px;
      border-radius: 4px;
      text-decoration: none;
      font-weight: 500;
    }

    .btn-simple:hover {
      background: #004494;
      color: #fff;
    }

    .sys-grid-simple {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }

    .sys-card-simple {
      border: 1px solid #e5e7eb;
      padding: 20px;
      border-radius: 6px;
      text-align: center;
    }

    .sys-card-simple h4 {
      margin: 10px 0 5px 0;
      font-size: 15px;
      color: #111827;
    }

    .sys-card-simple p {
      font-size: 13px;
      color: #6b7280;
      margin: 0;
    }

    /* VIDEOS */
    .video-grid-simple {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      max-width: 1200px;
      margin: 40px auto;
      padding: 0 20px;
    }

    .video-card-simple {
      border: 1px solid #e5e7eb;
      border-radius: 6px;
      overflow: hidden;
      background: #fff;
    }

    .video-card-simple video {
      width: 100%;
      display: block;
      border-bottom: 1px solid #e5e7eb;
    }

    .video-info {
      padding: 20px;
    }

    .video-info h4 {
      margin: 0 0 10px 0;
      font-size: 16px;
      color: #111827;
    }

    .video-info p {
      margin: 0;
      font-size: 14px;
      color: #6b7280;
    }

    @media (max-width: 768px) {
      .doc-layout {
        flex-direction: column;
      }

      .simple-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
      }
    }

    @media (max-width: 768px) {

      .doc-layout {
        flex-direction: column;
      }

      .doc-sidebar {
        display: none;
        /* 👈 HIDE by default */
      }

      .doc-sidebar.open {
        display: block;
        /* 👈 SHOW when clicked */
        position: fixed;
        top: 70px;
        left: 0;
        width: 85%;
        height: calc(100vh - 70px);
        background: #fff;
        z-index: 999;
        overflow-y: auto;
      }

      .doc-content {
        width: 100%;
      }
    }

    @media (max-width: 768px) {
      .doc-content {
        padding: 0px;
      }
    }

    .doc-sidebar.open::after {
      content: "";
      position: fixed;
      top: 0;
      left: 85%;
      width: 15%;
      height: 100%;
      background: rgba(0, 0, 0, 0.3);
    }

    @media (max-width: 768px) {

      .doc-sidebar {
        display: none !important;
        position: fixed;
        /* 👈 THIS FIXES YOUR ISSUE */
        top: 70px;
        left: 0;
        width: 85%;
        height: calc(100vh - 70px);
        z-index: 999;
        background: #fff;
        overflow-y: auto;
      }

      .doc-sidebar.open {
        display: block !important;
      }

      /* 👇 THIS IS THE REAL BUG FIX */
      .doc-layout {
        display: block;
        /* instead of flex */
      }

    }

    .mobile-doc-toggle {
      display: none;
      margin: 10px;
      padding: 8px 12px;
      font-size: 14px;
      background: #f3f4f6;
      border: 1px solid #ddd;
      border-radius: 6px;
    }

    /* show only mobile */
    @media (max-width: 768px) {
      .mobile-doc-toggle {
        display: inline-block;
      }
    }

    @media (max-width: 768px) {

      .doc-content iframe {
        height: calc(100vh - 120px);
        /* 👈 FULL SCREEN FIX */
      }

    }

/* WRAPPER */
.citation-wrapper {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

/* HEADING */
.citation-heading {
  font-size: 30px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 25px;
}

/* BOX */
.citation-box {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

/* HOVER EFFECT (subtle premium feel) */
.citation-box:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* LINK */
.citation-link {
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  text-decoration: none;
  display: block;
}

/* LINK HOVER */
.citation-link:hover {
  color: #2563eb;
}

/* OPTIONAL: add arrow */
.citation-link::after {
  content: " ↗";
  font-size: 14px;
  color: #9ca3af;
}