/* =========================================
   ParsNama - Full CSS Style
   نسخه نهایی و اصلاح‌شده
   ========================================= */

/* =========================================
   @font-face - فونت وزیرمتن
   ========================================= */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
       url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   1. متغیرهای رنگی (حالت روشن - پیش‌فرض)
   ========================================= */
:root {
  --primary-100: #3F51B5;
  --primary-200: #757de8;
  --primary-300: #dedeff;
  --accent-100: #2196F3;
  --accent-200: #003f8f;
  --text-100: #2c3e50;
  --text-200: #5c5c5c;
  --bg-100: #FFFFFF;
  --bg-200: #f5f5f5;
  --bg-300: #e0e0e0;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --radius: 15px;
  --transition: 0.3s ease;
}

/* =========================================
   متغیرهای حالت تیره (Dark Mode)
   ========================================= */
body.dark-mode {
  --primary-100: #0085ff;
  --primary-200: #69b4ff;
  --primary-300: #e0ffff;
  --accent-100: #006fff;
  --accent-200: #e1ffff;
  --text-100: #FFFFFF;
  --text-200: #b0b0b0;
  --bg-100: #1E1E1E;
  --bg-200: #2d2d2d;
  --bg-300: #454545;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* =========================================
   2. تنظیمات پایه و ریست
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background-color: var(--bg-200);
  color: var(--text-100);
  line-height: 1.8rem;
  direction: rtl;
  transition: background-color 0.4s, color 0.4s;
  overflow-x: hidden;
  width: 100%;
}

p {
  line-height: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-200);
}

a {
  color: var(--primary-100);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-100);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* =========================================
   3. نوار بالایی (Top Bar)
   ========================================= */
.top-bar {
  background-color: var(--bg-100);
  border-bottom: 1px solid var(--bg-300);
  padding: 8px 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-right a {
  margin-left: 20px;
  color: var(--text-200);
}

.top-bar-right a:hover {
  color: var(--primary-100);
}

.top-bar-right a i {
  margin-left: 5px;
}

#theme-toggle {
  background-color: var(--bg-200);
  border: 1px solid var(--bg-300);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-100);
  transition: var(--transition);
}

#theme-toggle:hover {
  background-color: var(--primary-100);
  color: white;
  transform: rotate(20deg);
}

/* =========================================
   4. هدر اصلی
   ========================================= */
.main-header {
  background-color: var(--bg-100);
  padding: 20px 0;
  transition: var(--transition);
  overflow: visible;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: visible;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-100);
  cursor: pointer;
}

/* =========================================
   4.5. لوگوی انیمیشنی - ParsNama Logo
   ========================================= */

.logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  overflow: visible;
  padding: 5px 0;
}

.logo-area:hover {
  color: inherit;
}

#logo {
  max-width: 100px;
  height: auto;
  display: block;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.3) rotate(-15deg);
  filter: blur(10px);
  animation: logoReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.site-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}

.site-title h1 {
  color: var(--primary-100);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.6;
  margin: 0 0 4px 0;
  padding: 8px 4px;
  overflow: visible;
  display: inline-block;
  opacity: 0;
  transform: translateX(-30px);
  animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
  transition: color 0.3s ease;
}

.site-title p {
  color: var(--text-200);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  padding: 4px 4px;
  overflow: visible;
  opacity: 0;
  transform: translateX(-30px);
  animation: titleReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
  transition: color 0.3s ease;
}

/* =========================================
   کی‌فریم‌های انیمیشن
   ========================================= */

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-15deg);
    filter: blur(10px);
  }
  50% {
    opacity: 1;
    filter: blur(0);
  }
  70% {
    transform: scale(1.08) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   افکت‌های هاور
   ========================================= */

.logo-area:hover #logo {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 0 25px rgba(33, 150, 243, 0.8));
}

.logo-area:hover .site-title h1 {
  color: var(--accent-100);
}

.logo-area:hover .site-title p {
  color: var(--primary-100);
}

/* =========================================
   دارک مود
   ========================================= */

body.dark-mode #logo {
  filter: brightness(1.15);
}

body.dark-mode .logo-area:hover #logo {
  filter: brightness(1.2) drop-shadow(0 0 25px rgba(0, 133, 255, 0.9));
}

body.dark-mode .site-title h1 {
  color: var(--primary-100);
}

body.dark-mode .site-title p {
  color: var(--text-200);
}

/* =========================================
   5. منوی افقی
   ========================================= */
#main-menu {
  background-color: var(--primary-100);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

#main-menu .container > ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#main-menu .container > ul > li {
  position: relative;
}

#main-menu .container > ul > li > a {
  display: block;
  padding: 15px 20px;
  color: white;
  font-weight: bold;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#main-menu .container > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transition: all 0.4s ease;
  transform: translateX(50%);
  border-radius: 2px;
}

#main-menu .container > ul > li > a:hover::after,
#main-menu .container > ul > li > a.active::after {
  width: 60%;
}

#main-menu .container > ul > li > a:hover,
#main-menu .container > ul > li > a.active {
  background-color: var(--accent-100);
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(33, 150, 243, 0.5);
}

#main-menu .container > ul > li {
  animation: fadeInDown 0.5s ease forwards;
  opacity: 0;
}

#main-menu .container > ul > li:nth-child(1) { animation-delay: 0.1s; }
#main-menu .container > ul > li:nth-child(2) { animation-delay: 0.15s; }
#main-menu .container > ul > li:nth-child(3) { animation-delay: 0.2s; }
#main-menu .container > ul > li:nth-child(4) { animation-delay: 0.25s; }
#main-menu .container > ul > li:nth-child(5) { animation-delay: 0.3s; }
#main-menu .container > ul > li:nth-child(6) { animation-delay: 0.35s; }

/* =========================================
   6. منوی کشویی (Dropdown)
   ========================================= */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #FFFFFF;
  list-style: none;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 0;
  margin: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: #2c3e50;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  position: relative;
  padding-right: 20px;
  font-size: 0.95rem;
  background-color: #FFFFFF;
}

.dropdown-menu li a::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--accent-100);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: var(--primary-100);
  padding-right: 30px;
}

.dropdown-menu li a:hover::before {
  transform: scaleY(1);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

body.dark-mode .dropdown-menu {
  background-color: #2d2d2d;
  border-color: #454545;
}

body.dark-mode .dropdown-menu li a {
  color: #FFFFFF;
  background-color: #2d2d2d;
  border-bottom-color: #454545;
}

body.dark-mode .dropdown-menu li a:hover {
  background-color: #1E1E1E;
  color: var(--accent-100);
}

/* =========================================
   7. بخش Hero (صفحه اصلی)
   ========================================= */
.hero {
  background-image: url('../../../images/bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(63, 81, 181, 0.85), rgba(33, 150, 243, 0.75));
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hero-content {
  text-align: center;
  color: white;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease forwards;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  margin-bottom: 25px;
  animation: fadeInDown 1.2s ease forwards;
}

/* =========================================
   8. Hero کوچک برای صفحات داخلی
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
  padding: 60px 20px;
  text-align: center;
  color: white;
  margin-bottom: 50px;
}

.page-hero h1 {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  margin: 0;
}

/* =========================================
   9. دکمه اصلی
   ========================================= */
.btn-primary {
  display: inline-block;
  padding: 12px 35px;
  background-color: white;
  color: var(--primary-100);
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 1.4s ease forwards;
}

.btn-primary:hover {
  background-color: var(--accent-200);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .btn-primary {
  background-color: #FFFFFF;
  color: #1E1E1E;
}

body.dark-mode .btn-primary:hover {
  background-color: var(--accent-100);
  color: #FFFFFF;
}

/* =========================================
   10. بخش‌های اصلی محتوا
   ========================================= */
main {
  padding: 0 0 50px 0;
}

section {
  margin-bottom: 60px;
}

section h2 {
  color: var(--primary-100);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.section-divider {
  border: none;
  height: 3px;
  background: linear-gradient(to left, var(--primary-100), var(--accent-100));
  width: 80px;
  margin-bottom: 25px;
  border-radius: 3px;
}

/* =========================================
   11. کارت‌های خدمات
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background-color: var(--bg-100);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 1px solid var(--bg-300);
  display: block;
  color: var(--text-100);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-100);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-100);
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

.card:hover .card-icon {
  color: var(--accent-100);
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  color: var(--primary-100);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-200);
  font-size: 0.9rem;
  line-height: 1.6rem;
  margin: 0;
}

/* =========================================
   12. بخش چرا پارس‌نما / چشم‌انداز
   ========================================= */
.why-section {
  background-color: var(--primary-300);
  border-radius: var(--radius);
  padding: 40px;
  border-right: 5px solid var(--primary-100);
  transition: var(--transition);
}

.why-section h2 {
  color: var(--primary-100);
}

.why-section p {
  color: #2c3e50;
  margin: 0 0 10px 0;
}

body.dark-mode .why-section {
  background-color: var(--bg-300);
  border-right-color: var(--primary-100);
}

body.dark-mode .why-section h2 {
  color: var(--primary-200);
}

body.dark-mode .why-section p {
  color: var(--text-100);
}

/* =========================================
   13. صفحه لیست مقالات
   ========================================= */
.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.article-card {
  background-color: var(--bg-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--bg-300);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-100);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 20px;
}

.article-content h3 {
  color: var(--primary-100);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.article-content h3 a {
  color: inherit;
}

.article-content p {
  color: var(--text-200);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.read-more {
  color: var(--accent-100);
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more i {
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(-5px);
}

/* =========================================
   14. صفحه مقاله کامل (تکی)
   ========================================= */
.article-main {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
}

.article-toc {
  background-color: var(--bg-100);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
  border: 1px solid var(--bg-300);
}

.article-toc h3 {
  color: var(--primary-100);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-300);
  font-size: 1.1rem;
}

.article-toc details summary {
  cursor: pointer;
  color: var(--primary-100);
  font-weight: bold;
  padding: 5px 0;
  margin-bottom: 10px;
}

.article-toc ul {
  list-style: none;
  padding-right: 10px;
}

.article-toc ul li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.article-toc ul li a {
  color: var(--text-200);
  transition: var(--transition);
}

.article-toc ul li a:hover {
  color: var(--primary-100);
  padding-right: 5px;
}

.article-content-full {
  background-color: var(--bg-100);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--bg-300);
}

.article-content-full h3 {
  color: var(--primary-100);
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-100);
  display: inline-block;
}

.article-content-full h3:first-child {
  margin-top: 0;
}

.article-content-full p {
  text-align: justify;
  line-height: 2rem;
  color: var(--text-200);
  margin-bottom: 15px;
}

.back-to-top-link {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px dashed var(--bg-300);
}

.back-to-top-link a {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-100);
  color: white;
  border-radius: 30px;
  font-weight: bold;
  transition: var(--transition);
}

.back-to-top-link a:hover {
  background-color: var(--accent-100);
  transform: translateY(-3px);
}

/* =========================================
   15. گالری تصاویر (۳ ستون)
   ========================================= */
.gallery-section {
  margin-top: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 4 / 3;
  background-color: var(--bg-300);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  color: white;
  padding: 25px 20px 15px;
  transform: translateY(0);
  transition: var(--transition);
}

.gallery-overlay h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  margin: 0;
}

/* =========================================
   16. فوتر چهارستونه
   ========================================= */
footer {
  background-color: var(--bg-100);
  border-top: 3px solid var(--primary-100);
  padding-top: 40px;
  margin-top: 60px;
  transition: var(--transition);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
}

.footer-col h3 {
  color: var(--primary-100);
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-300);
}

.footer-col p {
  color: var(--text-200);
  font-size: 0.9rem;
  line-height: 1.7rem;
  margin-bottom: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--text-200);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-100);
  padding-right: 5px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-200);
  border-radius: 50%;
  color: var(--primary-100);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-100);
  color: white;
  transform: translateY(-3px) rotate(10deg);
}

.footer-col p i {
  color: var(--primary-100);
  margin-left: 8px;
}

.footer-bottom {
  background-color: var(--bg-200);
  border-top: 1px solid var(--bg-300);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-200);
  font-size: 0.85rem;
  margin: 0;
  direction: ltr;
  letter-spacing: 1px;
}

/* =========================================
   17. دکمه بازگشت به بالا
   ========================================= */
#back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-100);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--accent-100);
  color: white;
  transform: translateY(-5px) scale(1.1);
}

/* =========================================
   18. صفحه چند رسانه‌ای - ویدیوها
   ========================================= */
.videos-section {
  margin-top: 30px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.video-card {
  background-color: var(--bg-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--bg-300);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-100);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background-color: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  color: var(--primary-100);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.video-meta {
  color: var(--text-200);
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.video-meta i {
  color: var(--accent-100);
}

.video-info > p {
  color: var(--text-200);
  font-size: 0.9rem;
  line-height: 1.7rem;
  margin-bottom: 15px;
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-100);
  font-weight: bold;
  font-size: 0.9rem;
  transition: var(--transition);
}

.video-link:hover {
  color: var(--primary-100);
  gap: 10px;
}

/* =========================================
   19. صفحه چند رسانه‌ای - فایل‌های صوتی
   ========================================= */
.audio-section {
  margin-top: 60px;
}

.audio-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.audio-item {
  background-color: var(--bg-100);
  border-radius: var(--radius);
  padding: 25px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--bg-300);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.audio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-100);
}

.audio-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.audio-info i {
  font-size: 2.5rem;
  color: var(--primary-100);
  background-color: var(--bg-200);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.audio-item:hover .audio-info i {
  background-color: var(--primary-100);
  color: white;
  transform: scale(1.1) rotate(10deg);
}

.audio-info h3 {
  color: var(--primary-100);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.audio-info p {
  color: var(--text-200);
  font-size: 0.85rem;
  margin: 0;
}

.audio-item audio {
  width: 100%;
  outline: none;
  border-radius: 30px;
  height: 40px;
}

/* =========================================
   20. واکنش‌گرایی (Responsive Design)
   ========================================= */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  #main-menu .container > ul {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  #main-menu.active .container > ul {
    max-height: 600px;
  }

  #main-menu .container > ul > li > a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #main-menu .container > ul > li > a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border: none;
  }

  .dropdown:hover .dropdown-menu {
    max-height: 300px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }
  /* تست - بعداً حذف کنید */
@media (max-width: 768px) {
  body {
    background-color: red !important;
  }
  body::before {
    content: "MOBILE";
    position: fixed;
    top: 0;
    right: 0;
    background: yellow;
    color: black;
    padding: 20px;
    font-size: 30px;
    z-index: 999999;
  }
}

 