
/* الخط الأساسي */
body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background: #f0f4f9;
  direction: rtl;
  overflow-x: hidden;
}

/* أقسام رئيسية */
.section1, .section2, .section3, .section4, .FAQs, .contact, footer {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 40px;
}

/* الشعار والهيدر */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px;
}

.logo {
  width: 100px;
  height: auto;
  border-radius: 10px;
}

.company-name {
  font-size: 2rem;
  margin: 10px;
  color: #1e3a8a;
}

/* الشريط المتحرك */
.marquee-container {
  overflow: hidden;
  background: var(--secondary-color);
  color: #fff;
  padding: 10px;
  border-bottom: solid #f0f4f9;
}
.marquee {
  white-space: nowrap;
  display: inline-block;
  animation: marquee 60s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(-30%); } /* بدء الحركة من اليسار */
  100% { transform: translateX(100%); } /* انتهاء الحركة في اليمين */
}

/* القوائم */
.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  background-color: #e0e0e0;
}
.navbar li {
  margin: 10px;
}
.navbar a button{
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
#section1_h1{
  margin-top: 6rem;
  margin-right: 6rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  font-weight: 900;
  
}
#section1_h3{
  margin-top: 3em;
  margin-right: 12rem;
  width: 70%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.2); /* خلفية سوداء شفافة */
  border-radius: 20px;
  line-height:2.5;
  text-align-last: left;
}

/* الكروت */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  width: 280px;
  background: #fff;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.card img {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.card .content {
  padding: 15px;
}
.card .desc {
  font-size: 0.9rem;
  color: #555;
  text-align: justify;
}
.card .action {
  color: #eff1f8;
  font-weight: bold;
  text-decoration: none;
}

/* صور متحركة */
.your-slider img {
  height: auto;
  width: 100%;
  max-width: 300px;
  object-fit: cover;
  border-radius: 10px 30px;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.5);
}

/* الأسئلة الشائعة */
.faq-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}
.faq-container h1{
font-size: 25px;
font-family:'Cairo', sans-serif;

}
.faq-item {
  background: #f2f2f2;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
}
.faq-item input[type="checkbox"] {
  display: none;
}
.faq-item label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
}
.faq-item .arrow {
  border: solid black;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 6px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.faq-item input[type="checkbox"]:checked + label .arrow {
  transform: rotate(-135deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: white;
  padding: 0 1.2rem;
  transition: max-height 0.4s ease;
}
.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 200px;
  padding: 1rem;
}

/* الفورم */
.contact {
  background: #f7f7f7;
  padding: 40px 20px;
}
.contact h2 {
  text-align: center;
  color: #1e3a8a;
}
.tow {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.input_form {
  flex: 1 1 45%;
  margin: 10px;
}
.input_form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 5px;
}
.input_form label {
  display: block;
  margin-top: 5px;
  color: #555;
}
.send {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: #1e3a8a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* الفوتر */
footer {
  background-color: #1e3a8a;
  color: #fff;
  padding: 50px 0 20px;
}
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 20px;
}
.footer-column {
  flex: 1 1 300px;
  margin: 20px;
}
.footer-column h3 {
  margin-bottom: 20px;
  color: #90cdf4;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column ul li {
  margin-bottom: 10px;
}
.footer-column ul li a {
  color: #dbeafe;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-column ul li a:hover {
  color: #ffffff;
}
.footer-logo {
  width: 120px;
  margin-bottom: 15px;
  border-radius: 10px;
}
.social-media {
  text-align: center;
  margin-top: 30px;
}
.social-media a {
  color: #bbdefb;
  margin: 0 10px;
  font-size: 1.4rem;
  transition: color 0.3s;
}
.social-media a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #bbdefb;
  border-top: 1px solid #3b82f6;
  padding-top: 15px;
}

/* وسائط */
@media screen and (max-width: 768px) {
  .logo-container {
    flex-direction: column;
    text-align: center;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }
  .tow {
    flex-direction: column;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-column {
    margin: 20px 0;
  }
  .footer-logo {
    margin: 0 auto 15px;
  }
}
/* صفحة المقالات  */
.section-articles{
  background-color: #90cdf4;
  
}
/* حاوي المقال والصورة والعنوان  */
.articles-container{
  margin-left: 8em;
  margin-right: 8em;
  background-color: #dbeafe;
    padding: 30px;
}

.article-container {
  max-width: 70%;
  margin: 0 auto;
  padding: 20px;
  background-color: aqua;
  align-items: center;
  text-align: center;
}

.article-image {
  width: 60%;
  height: auto;
 
  margin-bottom: 20px;
  border-radius: 10px;
}

.article-title {
  font-size: 2em;
  color: #4CAF50;
  margin-top: 20px;
  text-align: center;
  
}

.article-section {
  margin: 30px 0;
}

.article-section h2 {
  color: #2d7d47;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.article-section p, .article-section ul {
  font-size: 1.1em;
}

.article-section ul {
  padding-right: 20px;
}

.highlight-box {
  background-color: #f1fdf4;
  border-right: 4px solid #4CAF50;
  padding: 15px;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .article-title {
    font-size: 1.5em;
  }
}
.cont_img{
 
  background-color: #4CAF50;
  text-align: center;
}
.art-img{
  width: 70%;
  margin-right: 10rem;

}
/* ============كود الدخول للادارة ========= */
.admin-modal {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.admin-modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
}

.modal-content input {
  width: 90%;
  padding: 10px;
  font-size: 16px;
}

.modal-content button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 5px;
  cursor: pointer;
}

.error-text {
  color: red;
  font-size: 14px;
  margin-top: 10px;
}
.navbar button:hover{
  color: red;
  scale: 1.1;
}
.contact-form {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form button {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0056b3;
}

.success-message {
  color: green;
  margin-top: 10px;
}

