  :root {
      --primary: #0d9488;
      --primary-dark: #0f766e;
      --primary-light: #5eead4;
      --accent: #14b8a6;
      --accent2: #06b6d4;
      --green: #16a34a;
      --green-light: #4ade80;
      --bg: #f0fdfa;
      --bg2: #ecfdf5;
      --white: #ffffff;
      --text: #134e4a;
      --text-light: #5eead4;
      --gray: #64748b;
      --card-shadow: 0 8px 32px rgba(13, 148, 136, 0.13);
      --radius: 18px;
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
        font-family: 'Vazirmatn';
  }

  body {
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
      padding-top: -20px;
  }

  .container {
      max-width: 1320px;
      margin: 0 auto;
      padding: 0 20px;
  }



      .news-ticker-container {
            background: linear-gradient(135deg, #319795, #38B2AC, #4FD1C5);
            border-bottom: 3px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 16px rgba(49, 151, 149, 0.2);
            position: relative;
            overflow: hidden;
            margin-top: 90px;
        }

        .news-ticker-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .news-ticker-wrapper {
            display: flex;
            align-items: center;
            padding: 12px 0;
            position: relative;
        }

        .news-ticker-label {
            background: rgba(255, 255, 255, 0.95);
            color: #319795;
            padding: 8px 20px;
            font-weight: 700;
            font-size: 14px;
            border-radius: 0 8px 8px 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            z-index: 2;
            flex-shrink: 0;
            position: relative;
        }

        .news-ticker-label::after {
            content: '';
            position: absolute;
            right: -8px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid rgba(255, 255, 255, 0.95);
            border-top: 16px solid transparent;
            border-bottom: 16px solid transparent;
        }

        .news-ticker-content {
            flex: 1;
            overflow: hidden;
            position: relative;
            margin-right: 20px;
        }

        .news-ticker-content::before,
        .news-ticker-content::after {
            content: '';
            position: absolute;
            top: 0;
            width: 60px;
            height: 100%;
            z-index: 1;
            pointer-events: none;
        }

        .news-ticker-content::before {
            right: 0;
            background: linear-gradient(to left, #4FD1C5, transparent);
        }

        .news-ticker-content::after {
            left: 0;
            background: linear-gradient(to right, #319795, transparent);
        }

        .news-ticker-list {
            display: flex;
            animation: scroll 30s linear infinite;
            white-space: nowrap;
        }

        .news-ticker-list:hover {
            animation-play-state: paused;
        }

        @keyframes scroll {
            0% {
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(0%);
            }
        }

        .news-ticker-item {
            display: inline-flex;
            align-items: center;
            margin-left: 48px;
            color: white;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            padding: 4px 0;
        }

        .news-ticker-item::before {
            content: '●';
            margin-left: 12px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 8px;
        }

        .news-ticker-item:hover {
            color: #ffffff;
            transform: translateY(-1px);
        }

        .news-ticker-item::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background: white;
            transition: width 0.3s ease;
        }

        .news-ticker-item:hover::after {
            width: 100%;
        }

        .news-ticker-icon {
            margin-left: 8px;
            font-size: 16px;
        }

        @media (max-width: 768px) {
            .news-ticker-wrapper {
                padding: 10px 0;
            }

            .news-ticker-label {
                padding: 6px 12px;
                font-size: 12px;
            }

            .news-ticker-content {
                margin-right: 12px;
            }

            .news-ticker-item {
                font-size: 13px;
                margin-left: 32px;
            }

            .news-ticker-list {
                animation-duration: 15s;
            }
        }

        @media (max-width: 480px) {
            .news-ticker-label {
                padding: 5px 10px;
                font-size: 11px;
            }

            .news-ticker-item {
                font-size: 12px;
                margin-left: 24px;
            }

            .news-ticker-icon {
                font-size: 14px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .news-ticker-list {
                animation: none;
            }
            
            .news-ticker-container::before {
                animation: none;
            }
        }


  ::-webkit-scrollbar {
    margin:20px 0 20px 0;
      width: 7px;
  }

  ::-webkit-scrollbar-track {
        margin:20px 0 20px 0;

      background: var(--bg);
  }

  ::-webkit-scrollbar-thumb {

      background: var(--primary-light);
      border-radius: 10px;
  }



  /* ─── NAVBAR ─── */

  nav {

      position: fixed;
      top: 0;
      width: 100%;
      z-index: 1000;

      background: rgba(255, 255, 255, 0.92);

      backdrop-filter: blur(18px);

      border-bottom: 1.5px solid rgba(13, 148, 136, 0.12);

      padding: 0 2rem;

      display: flex;
      align-items: center;
      justify-content: space-between;

      height: 90px;

      box-shadow: 0 2px 24px rgba(13, 148, 136, 0.08);

      transition: all .3s;

  }

  .nav-logo {

      display: flex;
      align-items: center;
      gap: .7rem;

      text-decoration: none;

  }

  .nav-logo .logo-icon {

      width: 70px;
      height: 70px;

      background: linear-gradient(135deg, var(--primary), var(--accent2));

      border-radius: 14px;

      display: flex;
      align-items: center;
      justify-content: center;

      font-size: 1.5rem;
      color: #fff;

      box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);

  }



  .nav-logo .logo-icon img {

      width: 70%;

  }



  .nav-logo span {

      font-size: 1.45rem;
      font-weight: 800;

      background: linear-gradient(135deg, var(--primary-dark), var(--accent2));

      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;

  }

  .nav-links {

      display: flex;
      align-items: center;
      gap: 2rem;

      list-style: none;

  }

  .nav-links a {

      text-decoration: none;
      color: var(--text);

      font-weight: 500;
      font-size: .97rem;

      position: relative;
      padding-bottom: 3px;

      transition: color .25s;

  }

  .nav-links a i {
      margin-left: 6px;
      font-size: 14px;
  }

  .nav-links a::after {

      content: '';
      position: absolute;
      bottom: 0;
      right: 0;

      width: 0;
      height: 2px;

      background: linear-gradient(90deg, var(--primary), var(--accent2));

      border-radius: 2px;
      transition: width .3s;

  }

  .nav-links a:hover {
      color: var(--primary);
  }

  .nav-links a:hover::after {
      width: 100%;
  }

  .nav-actions {
      display: flex;
      align-items: center;
      gap: 1rem;
  }

  .btn-outline {

      padding: .5rem 1.3rem;
      border-radius: 10px;

      border: 2px solid var(--primary);
      color: var(--primary);

      font-family: 'Vazirmatn', sans-serif;
      font-weight: 600;
      font-size: .9rem;

      cursor: pointer;
      background: transparent;
      transition: all .25s;

  }

  .btn-outline:hover {
      background: var(--primary);
      color: #fff;
  }

  .btn-primary {

      padding: .55rem 1.4rem;
      border-radius: 10px;

      background: linear-gradient(135deg, var(--primary), var(--accent2));

      color: #fff;
      border: none;

      font-family: 'Vazirmatn', sans-serif;
      font-weight: 700;
      font-size: .9rem;

      cursor: pointer;
      transition: all .3s;

      box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);

  }

  .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  }

  /* ─── MOBILE MENU TOGGLE BUTTON ─── */
  .menu-toggle {
      display: none;
      /* فقط در موبایل نمایش داده شود */
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
      flex-direction: column;
      gap: 5px;
      z-index: 1100;
  }

  .menu-toggle span {
      display: block;
      width: 26px;
      height: 3px;
      background: var(--text);
      border-radius: 3px;
      transition: all 0.3s ease;
  }

  /* State when menu is open (animation to X) */
  .menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
      opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
  }

  /* ─── MOBILE SIDE MENU ─── */
  .mobile-menu {
      position: fixed;
      top: 0;
      right: 0;
      /* منو از راست وارد می‌شود (مناسب فارسی) */
      width: 280px;
      max-width: 80vw;
      height: 100vh;
      background: var(--white);
      box-shadow: -5px 0 25px rgba(0, 0, 0, 0.12);
      z-index: 9999999;
      padding: 2rem 1.5rem;
      transform: translateX(100%);
      /* مخفی در راست */
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      overflow-y: auto;
  }

  .mobile-menu.active {
      transform: translateX(0);
  }

  /* لایه تیره پشت منو */
  .mobile-menu-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(3px);
      z-index: 999;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease;
  }

  .mobile-menu-overlay.active {
      opacity: 1;
      visibility: visible;
  }

  /* دکمه بستن داخل منو */
  .mobile-menu .close-btn {
      align-self: flex-end;
      background: none;
      border: none;
      font-size: 1.8rem;
      cursor: pointer;
      color: var(--text);
      margin-bottom: 1.5rem;
      line-height: 1;
  }

  /* بازسازی لینک‌ها درون منو */
  .mobile-menu .nav-links {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      list-style: none;
      padding: 0;
      margin: 0;
      align-items: stretch;
  }

  .mobile-menu .nav-links a {
      font-size: 1.05rem;
      font-weight: 600;
      text-decoration: none;
      color: var(--text);
      display: block;
      padding: 0.5rem 0;
      border-bottom: 1px solid var(--bg);
      transition: color 0.2s;
  }

  .mobile-menu .nav-links a:hover {
      color: var(--primary);
  }

  /* نمایش دکمه همبرگری فقط در موبایل */
  @media (max-width: 600px) {
      .menu-toggle {
          display: flex;
      }

      /* مخفی کردن لینک‌های داخل نوبار اصلی (قبلاً داشتید) */
  }



  /* هدر صفحه */
  .page-header {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      color: white;
      border-radius: 0 0 var(--radius) var(--radius);
      margin-bottom: -40px;
      text-align: center;
      box-shadow: 0 4px -12px rgba(13, 148, 136, 0.2);
  }

  .page-header h1 {
      font-size: 2.5rem;
      margin-bottom: 10px;
      font-weight: 700;
  }

  .page-header p {
      font-size: 1.1rem;
      opacity: 0.9;
      max-width: 700px;
      margin: 0 auto;
  }

  /* دسته‌بندی‌ها */
  .categories-section {
    margin-top: 30px;
      padding: 40px 0;
  }

  .section-title {
      font-size: 1.8rem;
      margin-bottom: 25px;
      color: var(--primary-dark);
      display: flex;
      align-items: center;
      gap: 10px;
  }

  .section-title i {
      color: var(--accent);
  }

  .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 20px;
      margin-bottom: 40px;
  }

  .category-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 25px;
      box-shadow: var(--card-shadow);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
      border-top: 5px solid var(--primary);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .category-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 40px rgba(13, 148, 136, 0.2);
  }

  .category-card.active {
      border-top-color: var(--accent2);
      background-color: var(--bg2);
  }

  .category-icon {
      width: 70px;
      height: 70px;
      background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 15px;
      color: white;
      font-size: -8rem;
  }

  .category-card h3 {
      font-size: 1.3rem;
      margin-bottom: 10px;
      color: var(--primary-dark);
  }

  .category-card p {
      color: var(--gray);
      font-size: 0.95rem;
      margin-bottom: 15px;
  }

  .subcategories {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
  }

  .subcategory-tag {
      background-color: var(--bg);
      color: var(--primary-dark);
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.85rem;
      border: 1px solid var(--primary-light);
  }

  /* فیلترها */
  .filters-section {
      background-color: var(--white);
      padding: 25px;
      border-radius: var(--radius);
      box-shadow: var(--card-shadow);
      margin-bottom: 40px;
  }

  .filters-row {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      align-items: center;
  }

  .filter-group {
      flex: 1;
      min-width: 200px;
  }

  .filter-group label {
      display: block;
      margin-bottom: 8px;
      color: var(--primary-dark);
      font-weight: 600;
  }

  .filter-select,
  .filter-input {
      width: 100%;
      padding: 12px 15px;
      border: 2px solid var(--primary-light);
      border-radius: 12px;
      background-color: var(--bg);
      color: var(--text);
      font-size: 1rem;
      transition: border-color 0.3s;
  }

  .filter-select:focus,
  .filter-input:focus {
      outline: none;
      border-color: var(--primary);
  }

  .filter-buttons {
      display: flex;
      gap: 10px;
      margin-top: 10px;
  }

  .btn {
      padding: 12px 24px;
      border-radius: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
  }

  .btn-primary {
      background-color: var(--primary);
      color: white;
  }

  .btn-primary:hover {
      background-color: var(--primary-dark);
  }

  .btn-outline {
      background-color: transparent;
      color: var(--primary);
      border: 2px solid var(--primary);
  }

  .btn-outline:hover {
      background-color: var(--primary-light);
      color: var(--primary-dark);
  }

  /* پروژه‌ها */
  .projects-section {
      padding: 20px 0 60px;
  }

  .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 25px;
  }

  .project-card {
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--card-shadow);
      transition: transform 0.3s ease;
  }

  .project-card:hover {
      transform: translateY(-5px);
  }

  .project-image {
      height: 200px;
      width: 100%;
      background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent2) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 3rem;
      position: relative;
      overflow: hidden;
  }

  .project-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

  .project-badges {
      position: absolute;
      top: 15px;
      left: 15px;
      display: flex;
      gap: 8px;
  }

  .project-badge {
      background-color: rgba(255, 255, 255, 0.9);
      color: var(--primary-dark);
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 5px;
  }

  .project-content {
      padding: 25px;
  }

  .project-title {
      font-size: 1.4rem;
      margin-bottom: -10px;
      color: var(--primary-dark);
  }

  .project-description {
      color: var(--gray);
      margin-bottom: 20px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  .project-stats {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--bg);
  }

  .stat-item {
      text-align: center;
  }

  .stat-value {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--primary);
  }

  .stat-label {
      font-size: 0.85rem;
      color: var(--gray);
  }

  .progress-bar {
      height: 10px;
      background-color: var(--bg);
      border-radius: 5px;
      overflow: hidden;
      margin-bottom: 20px;
  }

  .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary-light), var(--primary));
      border-radius: 5px;
      transition: width 0.5s ease;
  }

  .project-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
  }

  .btn-small {
      padding: 10px 18px;
      font-size: 0.9rem;
      flex: 1;
      min-width: 120px;
  }

  .btn-success {
      background-color: var(--green);
      color: white;
  }

  .btn-success:hover {
      background-color: #15803d;
  }

  /* مودال */
  .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 20px;
  }

  .modal.active {
      display: flex;
  }

  .modal-content {
      background-color: var(--white);
      border-radius: var(--radius);
      width: 100%;
      max-width: 600px;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
  }

  .modal-header {
      padding: 25px;
      border-bottom: 1px solid var(--bg);
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .modal-header h2 {
      color: var(--primary-dark);
      font-size: 1.5rem;
  }

  .close-modal {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: var(--gray);
      cursor: pointer;
      transition: color 0.3s;
  }

  .close-modal:hover {
      color: var(--primary);
  }

  .modal-body {
      padding: 25px;
  }

  .form-group {
      margin-bottom: 20px;
  }

  .form-group label {
      display: block;
      margin-bottom: 8px;
      color: var(--primary-dark);
      font-weight: 600;
  }

  .form-control {
      width: 100%;
      padding: 12px 15px;
      border: 2px solid var(--primary-light);
      border-radius: 12px;
      background-color: var(--bg);
      color: var(--text);
      font-size: 1rem;
      transition: border-color 0.3s;
  }

  .form-control:focus {
      outline: none;
      border-color: var(--primary);
  }

  .radio-group {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
  }

  .radio-option {
      display: flex;
      align-items: center;
      gap: 8px;
  }

  .radio-option input {
      accent-color: var(--primary);
  }

  .donation-amounts {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 10px;
      margin-bottom: 20px;
  }

  .amount-option {
      padding: 12px;
      text-align: center;
      border: 2px solid var(--primary-light);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s;
      font-weight: 600;
  }

  .amount-option:hover,
  .amount-option.active {
      background-color: var(--primary);
      color: white;
      border-color: var(--primary);
  }

  .custom-amount {
      display: flex;
      align-items: center;
      gap: 10px;
  }

  .custom-amount input {
      flex: 1;
  }

  .currency {
      color: var(--primary-dark);
      font-weight: 600;
  }

  /* فوتر */
  .page-footer {
      background-color: var(--primary-dark);
      color: white;
      padding: 40px 0;
      text-align: center;
      border-radius: var(--radius) var(--radius) 0 0;
      margin-top: 40px;
  }

  .footer-content {
      max-width: 800px;
      margin: 0 auto;
  }

  .footer-content p {
      opacity: 0.9;
      margin-bottom: 20px;
  }

  /* رسپانسیو */

  @media (max-width: 1200px) {
      .nav-links {
          display: none;
      }
  }

  @media (max-width: 992px) {
      .nav-links {
          display: none;
      }

      .categories-grid {
          grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      }

      .projects-grid {
          grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      }
  }

  @media (max-width: 768px) {
      .page-header h1 {
          font-size: 2rem;
      }

      .categories-grid {
          grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
      }

      .filters-row {
          flex-direction: column;
      }

      .filter-group {
          width: 100%;
      }

      .projects-grid {
          grid-template-columns: 1fr;
      }

      .project-actions {
          flex-direction: column;
      }

      .btn-small {
          width: 100%;
      }
  }

  @media (max-width: 480px) {
      .page-header {
          padding: 30px 0;
      }

      .section-title {
          font-size: 1.5rem;
      }

      .modal-content {
          max-height: 80vh;
      }
  }