@import url('https://fonts.googleapis.com/css2?family=Vazirmatn&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  background: linear-gradient(to bottom, #e0f7fa, #ffffff);
  color: #333;
  line-height: 1.6;
}

header {
  background: linear-gradient(to right, #0077be, #00bcd4);
  color: white;
  padding: 40px 10px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  animation: slide 2s infinite alternate;
}

@keyframes slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-family: 'Roboto', sans-serif;
}

nav {
  margin-top: 20px;
}

nav a {
  margin: 0 15px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #ffeb3b;
  transform: scale(1.1);
}

main {
  padding: 300px 200px;
  text-align: center;
}

.lesson-container {
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2em;
  color: #0077be;
  margin-bottom: 40px;
  font-family: 'Roboto', sans-serif;
  animation: fadeIn 2s;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.lesson-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.lesson-item {
  text-decoration: none;
}

.lesson-card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.lesson-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.lesson-card h3 {
  font-size: 1em;
  color: #0077be;
  margin-bottom: 10px;
}

.lesson-card p {
  font-size: 1em;
  color: #555;
}

/* دکمه‌ها */
button, .btn {
  padding: 20px 20px;
  border-radius: 20px;
  border: none;
  background-color: #0077be;
  color: white;
  font-size: 0.75em;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  background-color: #00bcd4;
  transform: scale(1.1);
}

button:active, .btn:active {
  transform: scale(1);
}

/* فرم ثبت نام */
.form-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #0077be;
}

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

input[type="submit"] {
  width: 100%;
  padding: 15px;
  background-color: #0077be;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #00bcd4;
}

/* پاسخگویی به اندازه صفحه */
@media (max-width: 1200px) {
  header h1 {
    font-size: 2.2em;
  }

  main {
    padding: 150px 100px;
  }
}

@media (max-width: 1024px) {
  header h1 {
    font-size: 2em;
  }

  .lesson-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  main {
    padding: 120px 80px;
  }

  .lesson-card {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }

  main {
    padding: 100px 60px;
  }

  .lesson-list {
    grid-template-columns: 1fr;
  }

  .lesson-card h3 {
    font-size: 1.2em;
  }

  .form-container {
    padding: 20px;
  }

  input[type="text"], input[type="email"], input[type="password"], input[type="submit"] {
    font-size: 0.9em;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.6em;
  }

  .lesson-list {
    grid-template-columns: 1fr;
  }

  .lesson-card h3 {
    font-size: 1.1em;
  }

  .form-container {
    padding: 20px;
  }

  input[type="text"], input[type="email"], input[type="password"], input[type="submit"] {
    font-size: 0.9em;
  }

  .lesson-card {
    padding: 15px;
  }

  .lesson-image {
    width: 150px;
    height: auto;
  }

  .lesson-card {
    flex-direction: column;
  }

  .image-section img {
    max-width: 100%;
    height: auto;
  }

  .image-login img {
    max-width: 100%;
    height: auto;
  }

  .search-section input {
    width: 80%;
  }

  .search-section button {
    width: 100%;
  }

  .social-button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

.comments-section {
  margin-top: 30px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comment-form label {
  font-weight: bold;
}

.comment-form textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.rating input {
  display: none;
}

.rating label {
  font-size: 30px;
  color: #FFD700;
  cursor: pointer;
}

.rating input:checked ~ label {
  color: #FFD700;
}

.comments .comment {
  padding: 10px;
  background-color: #fff;
  margin-top: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comments .comment p {
  margin: 5px 0;
}

.faq-section {
  margin-top: 30px;
}

.accordion-button {
  background-color: #679fc5;
  padding: 15px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accordion-button:hover {
  background-color: #ddd;
}

.answer {
  padding: 0 15px;
  display: none;
  background-color: #f9f9f9;
}

.accordion-button.active + .answer {
  display: block;
}

.privacy-policy {
  margin-top: 30px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.privacy-policy p {
  font-size: 16px;
}

.social-share {
  text-align: center;
  margin-top: 30px;
}

.social-button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  margin: 5px;
  border-radius: 5px;
}

.facebook {
  background-color: #3b5998;
  color: white;
}

.twitter {
  background-color: #00acee;
  color: white;
}

.instagram {
  background-color: #C13584;
  color: white;
}

.image-section {
  text-align: center;
  margin-top: 20px;
}

.image-section img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 8px;
}

.image-login {
  text-align: center;
  margin-top: 20px;
}

.image-login img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 1px;
}

.image-section {
  margin-bottom: 0;
  padding: 0;
}

main {
  margin-top: 0;
  padding-top: 0;
}

.lesson-card {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lesson-image {
  width: 200px;
  height: auto;
  border-radius: 8px;
}

.lesson-card {
  font-size: 2em;
  color: #0077be;
  font-family: 'Roboto', sans-serif;
}


@import url('https://fonts.googleapis.com/css2?family=Vazirmatn&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background: #f4f4f4;
    color: #333;
}

header {
    background-color: #0077be;
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2em;
}

nav a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

nav a:hover {
    color: #ffeb3b;
}

main {
    padding: 20px;
    text-align: center;
}

.quiz-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.quiz-container h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #0077be;
}

.question {
    margin-bottom: 20px;
    text-align: right;
}

.question-text {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
    color: #333;
    cursor: pointer;
}

input[type="radio"] {
    margin-right: 10px;
}

.submit-btn {
    margin-top: 30px;
}

button {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #0077be;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #00bcd4;
}

/* استایل برای ریسپانسیو */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .quiz-container {
        padding: 15px;
        margin: 0 15px;
    }

    .question-text {
        font-size: 1em;
    }

    button {
        font-size: 1em;
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .quiz-container {
        padding: 10px;
    }

    .question-text {
        font-size: 0.9em;
    }

    label {
        font-size: 0.9em;
    }

    button {
        font-size: 0.9em;
    }
}