* {
      box-sizing: border-box;
      caret-color: transparent;
    }

    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background-color: #fff;
      color: #222;
    }

    /* Header */
    header {
      background: #fff;
      border-bottom: 1px solid #ddd;
      padding: 1rem 1rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    .logo {
      display: flex;
      align-items: center;
      font-size: 1.7rem;
      font-weight: 600;
      color: #222;
    }

    .logo-img {
      height: 30px;
      margin-right: 0.5rem;
      margin-bottom: 0.5rem;
    }

    nav {
      display: flex;
      justify-content: center;
      flex: 1 1 100%;
      gap: 4rem;
      margin-bottom: 1rem;
      margin-top: 1rem;
    }

    nav a {
      color: #333;
      text-decoration: none;
      font-weight: 500;
    }

    nav a:hover {
      color: #0056d2;
    }

    /* Page Header */
    .page-header {
      padding: 2rem;
      max-width: 1200px;
      margin: auto;
    }

    .intro h1 {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }

    .page-header p {
      color: #666;
      margin-bottom: 1.5rem;
    }

    .tabs a {
      margin-right: 1.5rem;
      text-decoration: none;
      font-weight: 600;
      color: #000;
      padding-bottom: 0.25rem;
    }

    .tabs .active {
      border-bottom: 2px solid #000;
    }

    /* Categories */
    .category-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: auto;
      padding: 0 2rem 4rem;
    }

    .category-block h2 {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }

    .category-block ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .category-block li {
      margin: 0.4rem 0;
    }

    .category-block a {
      color: #333;
      text-decoration: none;
      font-size: 0.95rem;
    }

    .category-block a:hover {
      text-decoration: underline;
    }

    /* Footer */
    footer {
      background: #f9f9f9;
      padding: 2rem;
      font-size: 0.85rem;
      border-top: 1px solid #eee;
    }

    .footer-container {
      max-width: 1200px;
      margin: auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 2rem;
    }

    .footer-section h4 {
      font-weight: 600;
      margin-bottom: 0.8rem;
    }

    .footer-section ul {
      list-style: none;
      padding: 0;
    }

    .footer-section li {
      margin: 0.3rem 0;
    }

    .footer-section a {
      text-decoration: none;
      color: #444;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 2rem;
      color: #888;
    }
    @media (max-width: 768px) {
      header {
        flex-direction: column;
        align-items: stretch;
      }

      .search-bar {
        flex-direction: row;
        width: 100%;
        margin-top: 1rem;
      }

      nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
        margin-bottom: 1rem;
      }

      .menu-bar {
        flex-direction: column;
        gap: 1rem;
      }

      .category-container {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 480px) {
      .category-container {
        grid-template-columns: 1fr;
      }
    }

    main { padding: 0.5rem 2rem 2rem; max-width: 1200px; margin: auto; }
    .intro { margin-bottom: 2rem; }
    .intro h1 { font-size: 2rem; margin-bottom: 1rem; word-break: break-word; color: #333333; }
    .intro p { font-size: 1rem; color: #555; }
    .read-more { margin-top: 1rem; padding: 0.6rem 1rem; background: #1865f2; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }

    .docs-section h2 { font-size: 1.3rem; margin-bottom: 1rem; }

    .carousel { position: relative; }
    .carousel-track {
      display: flex;
      overflow-x: auto;
      scroll-behavior: smooth;
      gap: 1rem;
      padding-bottom: 1rem;
      -webkit-overflow-scrolling: touch;
    }
    .doc-card {
      flex: 0 0 70%;
      background: #e7e7e7;
      border-radius: 6px;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.192);
      overflow: hidden;
      min-width: 220px;
      max-width: 240px;
      margin-left: 0.3rem;
    }
    .doc-card img {
        width: 80%;
      height: auto;
      display: block;
      margin: 1rem;
    }
    .doc-card-content {
      padding: 0.75rem;
    }
    .doc-card-content h3 {
      font-size: 1rem;
      margin-bottom: 0.5rem;
      color: #141430;
    }
    .doc-card-content .meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
      color: #777;
    }
    .save-btn {
      background: transparent;
      border: none;
      color: #1865f2;
      cursor: pointer;
      font-size: 0.85rem;
    }

    .carousel-nav {
      display: none;
    }

    .about {
      margin: 2rem 0;
      color: #333;
      font-size: 0.95rem;
    }
    .about p {
      max-height: 110px;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    .footer-menu {
      background: #1d1d3c;
      padding: 2rem 1rem;
      color: #fff;
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
      gap: 1.2rem;
    }
    .footer-menu h4 {
      font-size: 1rem;
      margin-bottom: 0.5rem;
    }
    .footer-menu a {
      display: block;
      color: #aaa;
      text-decoration: none;
      margin-bottom: 0.25rem;
      font-size: 0.85rem;
    }
    .footer-menu a:hover {
      color: #fff;
    }

    footer p {
      text-align: center;
      font-size: 0.8rem;
      color: #888;
      margin-top: 1rem;
    }

    @media (min-width: 768px) {
      .doc-card { flex: 0 0 200px; }
      .intro h1 { font-size: 2rem; }
      .carousel-nav {
        display: block;
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        background: rgba(255,255,255,0.8);
        border: none;
        font-size: 1.5rem;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 5;
      }
      .carousel-prev { left: -20px; }
      .carousel-next { right: -20px; }
    }