:root {
  --primary: #4b1e1e; /* البني الغامق */
  --secondary: #c8a968; /* الذهبي */
  --light-bg: #f9f9f9;
  --dark-text: #333;
}

body {
  font-family: 'Cairo', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
}

/* الهيدر */
header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 60px;
  height: auto;
}
.center-name {
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
}

/* الناف بار */
.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.navbar a:hover {
  color: #222;
  background: rgba(255, 255, 255, 0.3);
  padding: 5px 10px;
  border-radius: 5px;
}

/* زر اللغة */
.lang-switch button {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 6px 12px;
  margin-left: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
.lang-switch button:hover {
  background: var(--secondary);
  color: #fff;
}

nav button {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
  padding: 8px 15px;
  margin: 5px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
}
nav button:hover {
  background: var(--secondary);
  color: #fff;
}

section {
  padding: 30px 20px;
  max-width: 900px;
  margin: auto;
}
h2 {
  color: var(--primary);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
  padding-bottom: 5px;
}

.services ul {
  list-style: none;
  padding: 0;
}
.services li {
  margin: 10px 0;
  font-size: 1.1em;
}
.services i {
  color: var(--secondary);
  margin-left: 8px;
}

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.course {
  background: #fff;
  border-left: 5px solid var(--secondary);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.course:hover {
  transform: translateY(-5px);
}

form {
  display: flex;
  flex-direction: column;
}
form label {
  margin-top: 10px;
  font-weight: bold;
}
form input,
form select {
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
form button {
  margin-top: 15px;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
form button:hover {
  background: var(--secondary);
}

footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.footer-box h3 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.2em;
}

.footer-box p,
.footer-box a {
  color: #ddd;
  font-size: 0.95em;
  text-decoration: none;
}
.footer-box a:hover {
  color: var(--secondary);
}

.footer-box ul {
  list-style: none;
  padding: 0;
}
.footer-box ul li {
  margin-bottom: 10px;
}

.social-icons {
  margin-top: 10px;
}
.social-icons a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 1.3em;
  transition: 0.3s;
}
.social-icons a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9em;
  color: var(--secondary);
}

/* زر واتساب */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px #999;
  z-index: 100;
}
.whatsapp-float i {
  margin-top: 12px;
}
/* للشاشات الصغيرة */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
  }

  .navbar a {
    display: block;
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
  }

  .lang-switch {
    margin-top: 10px;
  }
}
@media (max-width: 600px) {
  h2 {
    font-size: 1.3em;
  }

  .center-name {
    font-size: 1em;
    text-align: center;
  }

  .courses {
    grid-template-columns: 1fr; /* دورة وحدة في السطر */
  }

  form input,
  form select,
  form button {
    font-size: 1em;
  }
}
