 :root {
      --primary-purple: #6a4c93;
      --primary-gold: #FFCC00;
      --bg-semi: rgba(106, 76, 147, 0.85);
      --text-light: #ffffff;
      --shadow-gold: 0 0 15px rgba(255, 204, 0, 0.5);
      --transition-fast: all 0.3s ease;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Ordibehesht', sans-serif;
      background: linear-gradient(135deg, #2d1b4e, #1a0f2e);
      color: var(--text-light);
      min-height: 100vh;
      overflow-x: hidden;
      position: relative;
    }

    body::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: url('images/background.jpg') center/cover no-repeat;
      opacity: 0.15;
      z-index: -1;
    }

    /* =================== منوی بالا =================== */
    .fancy-navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 24px;
      background: rgba(106, 76, 147, 0.92);
      backdrop-filter: blur(10px);
      border-bottom: 2px solid var(--primary-gold);
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .navbar-brand {
      font-weight: 800;
      font-size: 1.4rem;
      color: var(--primary-gold);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .seo-text-section {
  display: flex;
  justify-content: center;
  margin: 60px 0;
  padding: 0 16px;
}

.seo-text-box {
  max-width: 900px;
  text-align: center;
  line-height: 1.9;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 32px 24px;
}

.seo-text-box h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: #fff; /* اگر پس‌زمینه تیره است */
}

.seo-text-box p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #ddd;
}

.seo-text-box a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 500;
}

.seo-text-box a:hover {
  text-decoration: underline;
}

    .navbar-brand img {
      border: 2px solid var(--primary-gold);
      border-radius: 50%;
    }
    #main-menu {
      display: flex;
      gap: 20px;
      list-style: none;
    }
    .nav-link {
      color: white;
      text-decoration: none;
      font-weight: 600;
      padding: 6px 12px;
      border-radius: 8px;
      transition: var(--transition-fast);
    }
    .nav-link:hover, .nav-link.active {
      background: var(--primary-gold);
      color: var(--primary-purple);
    }

    /* =================== بخش معرفی =================== */
    .hero-section {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 900px;
  margin: 150px auto 0; /* 80px فاصله از بالا، و居中 با auto */
}

    .hero-title {
      font-family: 'SahelBold', sans-serif;
      font-size: 2.2rem;
      color: var(--primary-gold);
      line-height: 1.3;
      margin-bottom: 20px;
      text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    }
    .hero-subtitle {
      font-size: 1.2rem;
      line-height: 1.8;
      color: #e0d6f0;
      max-width: 700px;
      margin: 0 auto;
    }
    .hero-subtitle strong {
      color: var(--primary-gold);
    }

    /* =================== انتخاب نوع مدیا =================== */
    .choose-container {
      display: flex;
      justify-content: center;
      gap: 40px;
      margin: 40px auto;
      max-width: 800px;
      flex-wrap: wrap;
    }
    .card-block {
      text-align: center;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .card-block.show {
      opacity: 1;
      transform: translateY(0);
    }
    .card-select {
      width: 140px;
      height: 140px;
      margin: 0 auto 16px;
      cursor: pointer;
      border-radius: 20px;
      background: var(--bg-semi);
      border: 3px solid var(--primary-gold);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition-fast);
      box-shadow: var(--shadow-gold);
    }
    .card-select:hover {
      transform: scale(1.08) rotate(3deg);
      background: rgba(255, 204, 0, 0.15);
    }
    .media-card-img {
      width: 80%;
      height: auto;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    }
    .card-desc {
      font-family: 'SahelBold';
      font-size: 1.1rem;
      color: var(--primary-gold);
    }

    /* =================== کانتینر اصلی محتوا =================== */
    .content-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 30px;
      padding: 0 20px 40px;
      max-width: 1400px;
      margin: 0 auto;
    }
    .media-section {
      flex: 1;
      min-width: 300px;
      max-width: 650px;
      background: var(--bg-semi);
      border-radius: 20px;
      padding: 25px;
      backdrop-filter: blur(10px);
      border: 2px solid var(--primary-gold);
      box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }
    .section-header {
      text-align: center;
      font-family: 'SahelBold';
      color: var(--primary-gold);
      font-size: 1.6rem;
      margin-bottom: 25px;
      padding-bottom: 12px;
      border-bottom: 2px dashed rgba(255,204,0,0.4);
    }

    /* =================== گرید کارت‌ها =================== */
    .media-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 20px;
      margin-bottom: 25px;
    }
    .media-card {
      background: rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      overflow: hidden;
      transition: var(--transition-fast);
      border: 1px solid rgba(255,204,0,0.3);
    }
    .media-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-gold);
      background: rgba(255, 204, 0, 0.08);
    }
    .media-thumb {
      width: 100%;
      height: 150px;
      object-fit: cover;
      display: block;
    }
    .media-title {
      padding: 10px;
      font-family: 'SahelBold';
      font-size: 1rem;
      color: var(--primary-gold);
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .media-link {
      display: block;
      text-align: center;
      padding: 8px;
      background: var(--primary-gold);
      color: var(--primary-purple);
      font-weight: bold;
      text-decoration: none;
      font-family: 'SahelBold';
      margin-top: 5px;
      border-radius: 0 0 14px 14px;
    }
    .media-link:hover {
      background: white;
    }

    /* =================== دکمه دیدن بیشتر =================== */
    .see-more-container {
      text-align: center;
    }
    .see-more-text {
      color: #ccc;
      margin-bottom: 12px;
      font-size: 0.95rem;
    }
    .see-more-btn {
      display: inline-block;
      background: linear-gradient(90deg, var(--primary-gold), #ffd84f);
      color: var(--primary-purple);
      padding: 10px 28px;
      border-radius: 30px;
      font-weight: bold;
      text-decoration: none;
      font-family: 'SahelBold';
      transition: var(--transition-fast);
      box-shadow: 0 4px 12px rgba(255,204,0,0.4);
    }
    .see-more-btn:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 6px 20px rgba(255,204,0,0.7);
    }

    /* =================== فوتر =================== */
    .footer-site {
      background: rgba(106, 76, 147, 0.95);
      padding: 25px 20px;
      text-align: center;
      border-top: 2px solid var(--primary-gold);
      margin-top: 20px;
    }
    .footer-social {
      margin-bottom: 15px;
    }
    .footer-social a {
      margin: 0 12px;
      display: inline-block;
      transition: transform 0.3s ease;
    }
    .footer-social a:hover {
      transform: scale(1.2);
    }
    .footer-site p {
      margin: 8px 0;
      color: #e0d6f0;
    }
    .footer-site a {
      color: var(--primary-gold);
      text-decoration: none;
    }

    /* =================== بار دانلود اپ =================== */
    .download-app-box {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      backdrop-filter: blur(18px);
      background: rgba(106, 76, 147, 0.25);
      border-top: 1px solid rgba(255, 204, 0, 0.35);
      box-shadow: 0 -5px 20px rgba(106, 76, 147, 0.3);
      z-index: 9999;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 12px 0;
      text-align: center;
      animation: slideUp 1.3s ease-out forwards;
    }
    .download-content h3 {
      font-family: 'SahelBold';
      color: var(--primary-gold);
      margin: 0;
    }
    .download-content p {
      font-size: 0.9rem;
      margin: 4px 0 8px;
      color: #ffffffaa;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }
    .btn-download {
      display: inline-block;
      font-family: 'SahelBold';
      color: #fff;
      background: linear-gradient(135deg, var(--primary-purple), #8b5fbf);
      border: 2px solid var(--primary-gold);
      border-radius: 20px;
      padding: 8px 18px;
      text-decoration: none;
      box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
      transition: all 0.3s ease;
    }
    .btn-download:hover {
      background: linear-gradient(135deg, #8b5fbf, var(--primary-purple));
      color: var(--primary-gold);
      box-shadow: 0 0 25px rgba(255, 204, 0, 0.5);
      transform: scale(1.05);
    }

    @keyframes slideUp {
      from { transform: translateY(100%); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    /* =================== ریسپانسیو =================== */
    @media (max-width: 768px) {
      .hero-title { font-size: 1.7rem; }
      .hero-subtitle { font-size: 1rem; }
      .choose-container { gap: 25px; }
      .card-select { width: 120px; height: 120px; }
      .media-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
      .media-thumb { height: 130px; }
    }

    @media (max-width: 480px) {
      .fancy-navbar { flex-direction: column; gap: 15px; }
      #main-menu { flex-wrap: wrap; justify-content: center; }
      .hero-title { font-size: 1.5rem; }
      .card-select { width: 100px; height: 100px; }
      .media-grid { grid-template-columns: repeat(2, 1fr); }
    }