/* Reset بسيط */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* المتغيرات (تتحكم في كل الموقع) */
:root {
  --bg: #0f0f0f;
  --text: #ffffff;
  --primary: #ffe066;
  --line: #333;
}

.main-nav {
  width: 100%;
  border-bottom: 1px solid #333;
  background: #0f0f0f;
}

.nav-inner {
  max-width: 800px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-weight: bold;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-links a {
  font-size: 14px;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* الجسم */
body {
  font-family: 'Cairo', sans-serif;
  line-height: 1.8;
  background: var(--bg);
  color: var(--text);
  padding: 20px;
  text-align: left;
}

/* الكونتينر */
.container {
  max-width: 800px;
  margin: auto;
}

/* العناوين */
h1, h2, h3 {
  color: var(--primary);
}

h1 {
  text-align: center;
}
.hero {
    text-align: center;
    margin-top: 60px;
}

.hero p {
    margin-top: 15px;
    opacity: 0.8;
    font-size: 18px;
}

.hero-btn {
    margin-top: 30px;
}
.section {
  padding: 10px;
  margin: 20px 0;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

/* الخط */
.line {
  height: 1px;
  background: linear-gradient(to right, transparent, #ffcc00, transparent);
  margin: 40px 0;
  opacity: 0.5;
}

/* اللينكات */
a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* الصور */
img {
  max-width: 100%;
  border-radius: 10px;
}

/* تحسين القراءة */
p {
  margin: 10px 0;
}

ul {
  margin: 10px 20px;
}

h2 {
  margin-top: 60px;
}

.grid {
  margin-top: 20px;
  margin-bottom: 50px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 50px;
}

.card {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 204, 0, 0.2);
  border-color: #ffcc00;
}

.card h3 {
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: #ffcc00;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.card:hover a {
  letter-spacing: 1px;
  transform: translateX(5px);
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 10px;
}

.btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1a1a1a;
  color: var(--primary);
  font-size: 14px;
  transition: 0.3s;
}

/* hover */
.btn:hover {
  background: var(--primary);
  color: #000;
  text-decoration: none;
  transform: translateY(-2px);
}

/* next */
.next {
  margin-left: auto;
}

/* prev */
.prev {
  margin-right: auto;
}

.site-footer {
  margin-top: 50px;
  padding: 30px 20px;
  border-top: 1px solid #333;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: auto;
}

.footer-content h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.footer-content p {
  font-size: 14px;
  opacity: 0.8;
}

.footer-links {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  font-size: 14px;
  opacity: 0.8;
  transition: 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.copyright {
  font-size: 12px;
  opacity: 0.5;
}

.progress-wrapper {
  margin: 20px 0 30px;
}

.progress-text {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  transition: 0.4s ease;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #000;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.9;
}
