/* ألوان الصفحة */
:root {
  --blue: #0078d7;
  --dark-blue: #005fa3;
  --light-gray: #f2f6fa;
  --text-dark: #1b1b1b;
  --text-light: #ffffff;
}

/* إعدادات عامة */
* {
  direction: ltr;
  box-sizing: border-box;
  font-family: "Cairo", "Tahoma", sans-serif;
}

body {
  margin: 0;
  background-color: var(--light-gray);
  color: var(--text-dark);
  direction: rtl;
}

.container {
  width: 92%;
  margin: 0 auto;
}

/* الرأس */
.header {
  background-color: var(--blue);
  color: var(--text-light);
  text-align: center;
  padding: 60px 20px;
}

.header h1 {
  margin: 0;
  font-size: 2.2rem;
}

.header p {
  margin-top: 10px;
  font-size: 1.1rem;
}

/* قسم الاتصال */
.contact-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin: 50px 0;
  justify-content: center;
}

@media (max-width: 900px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}

/* نموذج الاتصال */
.contact-form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 50%;
}

.contact-form h2 {
  color: var(--blue);
  margin-top: 0;
}

.contact-form label {
  display: block;
  margin: 15px 0 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: none;
}

.contact-form button {
  margin-top: 20px;
  background-color: var(--blue);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: var(--dark-blue);
}

/* معلومات التواصل */
.contact-info {
  background-color: var(--blue);
  color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-info h2,
.contact-info h3 {
  margin-top: 0;
}

.contact-info p {
  margin: 15px 0;
  line-height: 1.6;
}
.contact-info a{
    color: var(--text-light);
    text-decoration: none;
    direction: ltr;
}
/* التذييل */
footer {
  width: 100%;
  position: relative;
  bottom: 0;  
  background-color: var(--dark-blue);
  color: var(--text-light);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

body {
  font-family: "Cairo", sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  margin: 0;
  direction: rtl;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

header {
  background: #0056b3;
  color: white;
  padding: 15px 0;
}

header .logo {
  font-size: 1.5em;
  font-weight: bold;
  width: 30%;
  display: flex;
  justify-content: center;
}

header nav ul {
  list-style: none;
  display: flex; 
  flex-wrap : wrap;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

header nav a.active,
header nav a:hover {
  border-bottom: 2px solid #ffffff;
  padding-bottom: 3px;
}

/* Contact Page */
.contact-page h1,
.about-page h1 {
  color: #0056b3;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.contact-section form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.contact-section form label {
  margin-top: 10px;
  font-weight: bold;
}

.contact-section form input,
.contact-section form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.contact-section form button {
  margin-top: 15px;
  background: #0056b3;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-section form button:hover {
  background: #003f82;
}

.info {
  flex: 1;
  min-width: 250px;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: #f2f6ff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 86, 179, 0.1);
}

.card h3 {
  color: #0056b3;
}
.header-template{
  display: flex;
  width: 95%;
  margin: auto;
  align-items: center;
}
.navbar{
  width: 40%;
}
@media (max-width:968px){
  .header-template{
    display: grid;
    justify-items: center;
    gap: 20px;

  }
  .img-logo{
    display: none;
  }
  header .logo{
    width: 100%;
    text-align: center;
  }
  .navbar{
    width: 100%;
  }
  .about-image{
    margin-bottom: 10%;
  }
  .contact-form{
    width: 50%;
  }
}
  @media (max-width : 769px){
  .contact-form{
    width: 100%;
  }
  }

/* ===== القائمة الجانبية المنسدلة ===== */
.options-menu {
  position: relative;
  font-size: 26px;
  cursor: pointer;
  user-select: none;
}

/* محتوى القائمة */
.side-dropdown {
  position: absolute;
  top: 45px;
  left: 0;
  background-color: white;
  color: #0056b3;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  width: 180px;
  text-align: left;
}

/* ظهور القائمة عند تمرير الماوس */
.options-menu:hover .side-dropdown {
  display: block;
}

/* تنسيق الروابط داخل القائمة */
.side-dropdown li a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #0056b3;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s;
  font-size: 16px;
}

.side-dropdown li:last-child a {
  border-bottom: none;
}

.side-dropdown li a:hover {
  background-color: #f0f6ff;
}

/* ===== للموبايل فقط ===== */
@media (min-width: 550px) {
  .options-menu {
    display: none;
  }
  .mob-logo{
    display: none;
  }
}
@media (max-width: 550px) {
  .header-template{
    display: none;
  }
}
.mob-view{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px;
}