@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary-blue: #1a365d;
  --secondary-blue: #2d3748;
  --accent-gold: #d4af37;
  --light-bg: #f7fafc;
  --text-dark: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
  --success: #38a169;
  --warning: #dd6b20;
  --danger: #e53e3e;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  line-height: 1.8;
  background-color: var(--light-bg);
  color: var(--text-dark);
}


.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}


header {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 2rem;
  color: var(--accent-gold);
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

nav a:hover {
  color: var(--accent-gold);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.search-box {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.search-box input {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  color: var(--white);
  width: 200px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box button {
  background: var(--accent-gold);
  border: none;
  padding: 0.5rem 1rem;
  color: var(--primary-blue);
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: #e6c12e;
}

.hero {
  background: linear-gradient(135deg, #1a365d, #2b6cb0);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}


.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--primary-blue);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.cta-button:hover {
  background: #e6c12e;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tutorials-section {
  padding: 4rem 0 1rem;

}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-gold);
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.tutorials-table {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--primary-blue);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  font-weight: 600;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  transition: var(--transition);
  align-items: center;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background: #C2C2C2;
  transform: none;
  box-shadow: none;
}


.topic-gaming {
  background: #805ad5;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-align: center;
}

.topic-hosting {
  background: #3182ce;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-align: center;
}

.topic-general {
  background: #38a169;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-align: center;
}

.view-btn {
  background: var(--accent-gold);
  color: var(--primary-blue);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.view-btn:hover {
  background: #e6c12e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
  background: var(--secondary-blue);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #cbd5e0;
  text-decoration: none;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--accent-gold);
  padding-right: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.5rem;
}

.social-links a:hover {
  background: var(--accent-gold);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .search-box {
    width: 100%;
    max-width: 300px;
  }

  .search-box input {
    width: 100%;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .table-header {
    display: none;
  }

  .table-row {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    border-radius: 8px;
  }

  .table-row::before {
    content: attr(data-title);
    font-weight: 600;
    color: var(--primary-blue);
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.seo-content {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.title-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-number-badge {
    background: rgba(26, 54, 93, 0.08);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}


.table-row:hover .tutorial-number-badge {
    background: rgba(26, 54, 93, 0.15);
    transform: none !important; 
}

.tutorial-title {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

.modern-link-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #e8ebf4;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: 0.25s;
}

.modern-link-btn:hover {
    background: #dce2f3;
    box-shadow: 0 2px 6px #00000014;
}

.pro-download-box {
    background: #f4f7ff;
    padding: 22px;
    border: 1px solid #d7e3ff;
    border-radius: 12px;
    margin-top: 25px;
}

.pro-download-btn {
    display: inline-block;
    margin-top: 12px;
    background: #4b7bff;
    color: #fff;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.3s;
}

.pro-download-btn:hover {
    background: #2a5cf5;
}

.download-size {
    margin: 10px 0 15px;
    font-size: 14px;
    color: #444;
}

.gallery-slider {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 400px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px #00000022;
}

.gallery-slider .slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slider .slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.gallery-slider .slide.active {
    display: block;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffffbb;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: 0.2s;
}

.slide-btn:hover {
    background: #ffffffee;
}

.prev { left: 10px; }
.next { right: 10px; }

.slider-counter {
    text-align: center;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333; 
    direction: rtl;
    background: #e0e0e0;
    padding: 6px 0;
    width: 70px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
    box-shadow: 0 0 6px #0001;
}


