    :root {
      --bg: #f8f9fa;
      --text: #2c3e50;
      --card-bg: #ffffff;
      --card-border: #e0e0e0;
      --primary: #3498db;
      --primary-dark: #2980b9;
      --secondary: #2ecc71;
      --accent: #e74c3c;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      --transition: all 0.3s ease;
    }

    body.dark {
      --bg: #1a1a2e;
      --text: #e6e6e6;
      --card-bg: #16213e;
      --card-border: #2a3a5e;
      --primary: #4cc9f0;
      --primary-dark: #3a9bc7;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    body {
      font-family: 'Vazirmatn FD', sans-serif;
      margin: 0;
      padding: 0;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
      transition: var(--transition);
    }

    /* هدر بهینه‌شده برای سئو */
    header {
      position: relative;
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: white;
      box-shadow: var(--shadow);
      padding: 0.8rem 0;
    }

    .logo-title {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .logo {
      height: 40px;
      width: auto;
      aspect-ratio: 1/1;
    }

    .header-text {
      display: flex;
      flex-direction: column;
    }

    header h1 {
      font-size: 0.8rem;
      margin: 0;
      font-weight: 600;
      line-height: 1.3;
    }

    header p {
      font-size: 0.75rem;
      margin: 0;
      opacity: 0.9;
    }

    .top-actions {
      display: flex;
      gap: 0.5rem;
    }

    .top-actions button {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      font-size: 0.9rem;
      cursor: pointer;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
      backdrop-filter: blur(5px);
    }

    .top-actions button:hover {
      background: rgba(255, 255, 255, 0.3);
    }

    /* محتوای اصلی با بهینه‌سازی سئو */
    .main-content {
      padding: 1.5rem 0;
    }

    .search-container {
      max-width: 600px;
      margin: 0 auto 1.5rem;
      padding: 0 15px;
      transition: all 0.3s ease;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
    }

    .search-container.show {
      max-height: 60px;
      opacity: 1;
      padding: 8px 15px;
    }

    .search-box {
      position: relative;
      width: 100%;
    }

    .search-box input {
      padding: 0.6rem 1rem 0.6rem 2.5rem;
      font-size: 0.9rem;
      width: 100%;
      box-sizing: border-box;
      border-radius: 50px;
      border: 2px solid var(--primary);
      background-color: var(--card-bg);
      color: var(--text);
      transition: var(--transition);
      box-shadow: var(--shadow);
    }

    .search-box::before {
      content: '\f002';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary);
      z-index: 1;
    }

    /* استایل‌های مخصوص کارت‌های بوت‌استرپ */
    .custom-card {
      background-color: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 10px;
      transition: var(--transition);
      cursor: pointer;
      text-decoration: none;
      color: inherit;
      height: 100%;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      min-height: 180px;
    }

    .custom-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 100%;
      height: 3px;
      background: var(--primary);
      transition: var(--transition);
      transform: scaleX(0);
      transform-origin: right;
    }

    .custom-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
      text-decoration: none;
      color: inherit;
    }

    .custom-card:hover::after {
      transform: scaleX(1);
    }

    .custom-card .card-icon {
      font-size: 1.8rem;
      color: var(--primary);
      margin-bottom: 0.6rem;
    }

    .custom-card .card-title {
      margin-top: 0;
      font-size: 1rem;
      margin-bottom: 0.5rem;
      color: var(--primary);
      font-weight: 600;
      line-height: 1.3;
    }

    .custom-card .card-text {
      font-size: 0.8rem;
      color: var(--text);
      margin-bottom: 0.8rem;
      flex-grow: 1;
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .custom-card .link-text {
      display: flex;
      align-items: center;
      color: var(--primary);
      font-weight: 500;
      font-size: 0.8rem;
      margin-top: auto;
    }

    .custom-card .link-text i {
      margin-right: 5px;
      font-size: 0.8rem;
    }

    .coming-soon {
      position: absolute;
      top: 6px;
      left: 6px;
      background-color: var(--accent);
      color: white;
      padding: 0.1rem 0.5rem;
      border-radius: 50px;
      font-size: 0.65rem;
      font-weight: bold;
    }

    .bg-green {
      background-color: green;
    }

    footer {
      text-align: center;
      padding: 1.5rem;
      font-size: 0.85rem;
      color: var(--text);
      margin-top: 2rem;
      background-color: var(--card-bg);
      border-top: 1px solid var(--card-border);
    }

    .footer-text {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.3rem;
    }

    @media (max-width: 400px) {
      .footer-text {
        flex-direction: column;
        align-items: center;
        gap: 0;
      }

      .rights {
        margin-top: 0.3rem;
      }
    }

    .social-links {
      margin-top: 0.8rem;
    }

    .social-links a {
      color: var(--text);
      margin: 0 8px;
      font-size: 2rem;
    }

    /* Breadcrumb برای بهبود سئو */
    .breadcrumb {
      padding: 0.5rem 1rem;
      background-color: var(--card-bg);
      border-radius: 5px;
      margin: 0 auto 1.5rem;
      max-width: 1400px;
      font-size: 0.85rem;
    }

    .breadcrumb a {
      color: var(--primary);
      text-decoration: none;
    }

    .breadcrumb a:hover {
      text-decoration: underline;
    }

    .breadcrumb span {
      margin: 0 5px;
      color: var(--text);
      opacity: 0.7;
    }

    /* انیمیشن‌های بهینه‌شده برای عملکرد */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .custom-card {
      animation: fadeIn 0.4s ease forwards;
      opacity: 0;
      will-change: transform, opacity;
    }

    .custom-card:nth-child(1) {
      animation-delay: 0.1s;
    }

    .custom-card:nth-child(2) {
      animation-delay: 0.2s;
    }

    .custom-card:nth-child(3) {
      animation-delay: 0.3s;
    }

    .custom-card:nth-child(4) {
      animation-delay: 0.4s;
    }

    .custom-card:nth-child(5) {
      animation-delay: 0.5s;
    }

    .custom-card:nth-child(6) {
      animation-delay: 0.6s;
    }

    .custom-card:nth-child(7) {
      animation-delay: 0.7s;
    }

    /* رسپانسیو با اولویت موبایل - بهبود یافته */
    /* نمایش 2 ستون برای موبایل‌های کوچک */
    @media (max-width: 360px) {
      .custom-card {
        padding: 0.6rem;
        min-height: 150px;
      }
      
      .custom-card .card-title {
        font-size: 0.85rem;
      }
      
      .custom-card .card-text {
        font-size: 0.49rem;
      }
    }

    /* نمایش 2 ستون برای موبایل‌های متوسط */
    @media (min-width: 361px) and (max-width: 600px) {
      .custom-card {
        padding: 0.8rem;
        min-height: 160px;
      }
      
      .custom-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
      }
      
      .custom-card .card-text {
        font-size: 0.55rem;
        -webkit-line-clamp: 2;
      }
      
      .custom-card .card-icon {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
      }
      
      .custom-card .link-text {
        font-size: 0.75rem;
      }
      
      .coming-soon {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
      }
    }

    /* نمایش 3 ستون برای تبلت‌های کوچک */
    @media (min-width: 601px) and (max-width: 768px) {
      .custom-card {
        padding: 1rem;
        min-height: 180px;
      }
      
      .custom-card .card-title {
        font-size: 1rem;
      }
      
      .custom-card .card-text {
        font-size: 0.55rem;
      }
    }

    @media (min-width: 480px) {
      .logo {
        height: 45px;
      }

      header h1 {
        font-size: 1.2rem;
      }
    }

    @media (min-width: 768px) {
      header {
        padding: 1rem 0;
      }

      .logo {
        height: 50px;
      }

      header h1 {
        font-size: 1.3rem;
      }

      header p {
        display: block;
      }

      .top-actions {
        margin-right: auto;
        gap: 0.6rem;
      }

      .top-actions button {
        width: 36px;
        height: 36px;
      }
      
      .custom-card {
        padding: 1.2rem;
        min-height: 200px;
      }
      
      .custom-card .card-title {
        font-size: 1.1rem;
      }
      
      .custom-card .card-text {
        font-size: 0.85rem;
      }
    }

    @media (min-width: 992px) {
      header h1 {
        font-size: 1.5rem;
      }

      header p {
        font-size: 0.85rem;
      }

      .main-content {
        padding: 2rem 0;
      }
    }
