@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600&display=swap');

/* ======== HEADER ======== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600&display=swap');

header {
  width: 100%;
  font-family: 'Cairo', sans-serif;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

/* الجزء العلوي */
.header-top {
  height: 35px;
  background-color: #0054A6;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  position: relative;
  overflow: visible;
}

/* اللغة */
.language-wrapper {
  position: relative;
}

.language-btn {
  font-size: 18px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s;
}

.language-btn:hover {
  transform: scale(1.2);
}

/* Dropdown اللغة */
.language-dropdown {
  display: none;
  position: absolute; 
  top: 35px; 
  right: 0;
  background-color: #fff;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  min-width: 100px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 10; 
}

.language-dropdown li a {
  display: block;
  text-decoration: none;
  color: #333;
  padding: 8px 12px;
  transition: background 0.3s;
}

.language-dropdown li a:hover {
  background-color: #f1f1f1;
}

/* الجزء السفلي */
.header-bottom {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background-color: #fff;
  margin-bottom: 10px;
}

.logo {
  height: 60px;
  object-fit: contain;
  z-index: 2;
}

.search-container {
  display: flex;
  align-items: center;
  background-color: #f1f1f1;
  border-radius: 30px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  flex-grow: 1;
  max-width: 400px;
  overflow: hidden;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
  font-size: 15px;
  background-color: transparent;
}

.search-btn {
  background-color: #0054A6;
  border: none;
  color: #fff;
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background-color: #003f7f;
}

/* قائمة الموقع */
.main-nav {
  background-color: #0054A6;
  text-align: center;
  padding: 10px 0;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.main-nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
}

.main-nav ul li a:hover {
  background-color: #003f7f;
}

/* استجابة الهواتف */
@media (max-width: 768px) {
  .header-bottom {
    flex-direction: column;
    height: auto;
  }
  .logo {
    margin-bottom: 10px;
  }
  .search-container {
    width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }
}


/* استجابة الهواتف */
@media (max-width: 768px) {
  .header-bottom {
    flex-direction: column;
    height: auto;
  }
  .logo {
    margin-bottom: 10px;
  }
  .search-container {
    width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* ======== MAIN CONTENT ======== */

/* الإحصائيات */
.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-card {
  background-color: #0054A6;
  color: #fff;
  padding: 20px 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 150px;
}

.stat-card h2 {
  font-size: 36px;
  margin: 0 0 10px 0;
}

.stat-card p {
  font-size: 16px;
  margin: 0;
}

/* بيانات التواصل */
.contact-info {
  text-align: center;
  margin-bottom: 50px;
}

.contact-info h3 {
  font-size: 26px;
  margin-bottom: 30px;
  color: #0054A6;
}

/* الشبكة */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px 40px;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


/* البطاقة */
.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #f7f7f7;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.contact-card i {
  font-size: 40px;
  color: #0054A6;
  flex-shrink: 0;
}

.contact-text h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #0054A6;
}

.contact-text p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

/* المدير */
.director-section {
  text-align: center;
  margin: 50px 20px;
}

.director-section h3 {
  font-size: 26px;
  margin-bottom: 30px;
  color: #0054A6;
}

.director-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
  background-color: #f7f7f7;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.director-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.director-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.director-info {
  text-align: left;
}

.director-info h4 {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: #0054A6;
}

.director-info p {
  margin: 4px 0;
  font-size: 16px;
  color: #333;
}

@media(max-width:768px){
  .director-card {
    flex-direction: column;
    text-align: center;
  }
  .director-info {
    text-align: center;
  }
}

/* كروت المستشارين */
.consultants h3 {
  text-align: center;
  font-size: 24px;
  color: #0054A6;
  margin-bottom: 20px;
}

.consultant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 768px) {
  .consultant-grid {
    grid-template-columns: 1fr; 
  }
}


.consultant-card {
  background-color: #f7f7f7;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.consultant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.consultant-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.consultant-card h4 {
  margin: 5px 0;
  font-size: 18px;
  color: #0054A6;
}

.consultant-card p {
  margin: 3px 0;
  font-size: 14px;
}

/* ======== FOOTER ======== */
.site-footer {
  background-color: #0054A6;
  color: #fff;
  padding: 50px 20px 20px;
  font-family: 'Cairo', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-about h4,
.footer-links h4,
.footer-contact h4 {
  font-size: 20px;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 15px;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #f0c040;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
}

.footer-contact-item i {
  color: #fff;
  font-size: 18px;
}

.footer-contact-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-item a:hover {
  color: #f0c040;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.8;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 10px;
}

@media(max-width:768px){
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-links ul li {
    display: inline-block;
    margin: 0 10px 10px 10px;
  }

  .footer-contact-item {
    justify-content: center;
  }
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

@media(min-width: 769px) {
  .footer-container > div {
    flex: 1 1 30%; 
    min-width: 250px; 
  }
}

@media(max-width:768px){
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-links ul li {
    display: inline-block;
    margin: 0 10px 10px 10px;
  }

  .footer-contact-item {
    justify-content: center;
  }
}

.main-nav {
  background-color: #0054A6;
  text-align: center;
  padding: 10px 0;
  position: relative;
  z-index: 50;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
}

.main-nav ul li {
  position: relative; /* مهم للـ dropdown */
}

.main-nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav ul li a:hover {
  background-color: #003f7f;
}

/* Dropdown */
.main-nav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0; /* للقائمة بالاتجاه العربي */
  background-color: #0054A6;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 5px;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 50;
}

.main-nav ul li .dropdown li a {
  display: block;
  padding: 8px 15px;
  color: #fff;
  font-weight: 400;
}

.main-nav ul li .dropdown li a:hover {
  background-color: #003f7f;
}

/* إظهار الـ dropdown عند المرور */
.main-nav ul li:hover > .dropdown {
  display: block;
}

/* استجابة الهواتف */
@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    gap: 5px;
    text-align: right;
  }
  .main-nav ul li .dropdown {
    position: relative;
    top: 0;
    right: 0;
  }
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* روابط الدخول */
.auth-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 3px 8px;
  border-radius: 4px;
  transition: 0.3s;
}

.auth-link:hover {
  background-color: rgba(255,255,255,0.2);
}

/* زر إنشاء حساب مميز */
.auth-link.register {
  border: 1px solid #fff;
}

.auth-link.register:hover {
  background-color: #fff;
  color: #0054A6;
}

.stats-section {
  text-align: center;
  margin: 50px 20px;
}

.section-title {
  font-size: 28px;
  color: #0054A6;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

/* خط تحت العنوان */
.section-title::after {
  content: "";
  width: 60%;
  height: 3px;
  background-color: #0054A6;
  position: absolute;
  bottom: -10px;
  right: 20%;
  border-radius: 5px;
}
.register-page {
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:70vh;
    background:#f5f7fa;
}

.register-box {
    background:#fff;
    padding:30px;
    width:350px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.register-box h2 {
    text-align:center;
    margin-bottom:20px;
    color:#0054A6;
}

.register-box input {
    width:100%;
    padding:10px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:5px;
}

.register-box button {
    width:100%;
    padding:10px;
    background:#0054A6;
    color:#fff;
    border:none;
    border-radius:5px;
    cursor:pointer;
}

.register-box button:hover {
    background:#003f7f;
}

.error {
    background:#ffdddd;
    padding:8px;
    margin-bottom:10px;
    border-radius:5px;
    font-size:14px;
}
.register-page,
.register-box,
.register-box h2,
.register-box input,
.register-box button,
.error {
    font-family: 'Cairo', sans-serif;
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.auth-link {
    text-decoration: none;
    color: #fff;
    background: #0054A6;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.auth-link i {
    font-size: 16px;
}

.auth-link:hover {
    background: #003f7f;
}

.auth-link.logout {
    background: #f44336;
}

.auth-link.logout:hover {
    background: #d32f2f;
}

.welcome-text {
    color: #fff;
    font-weight: 600;
    margin-right: 10px;
}
.consultation-page {
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:70vh;
    background:#f5f7fa;
    font-family: 'Cairo', sans-serif;
}

.consultation-box {
    background:#fff;
    padding:30px;
    width:450px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.consultation-box h2 {
    text-align:center;
    margin-bottom:20px;
    color:#0054A6;
}

.consultation-box input,
.consultation-box select,
.consultation-box textarea {
    width:100%;
    padding:10px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:5px;
    font-family: 'Cairo', sans-serif;
}

.consultation-box textarea {
    resize: vertical;
    min-height:100px;
}

.consultation-box button {
    width:100%;
    padding:10px;
    background:#0054A6;
    color:#fff;
    border:none;
    border-radius:5px;
    cursor:pointer;
    font-family: 'Cairo', sans-serif;
}

.consultation-box button:hover {
    background:#003f7f;
}

.error {
    background:#ffdddd;
    padding:8px;
    margin-bottom:10px;
    border-radius:5px;
    font-size:14px;
}

.success {
    background:#ddffdd;
    padding:8px;
    margin-bottom:10px;
    border-radius:5px;
    font-size:14px;
    color:#005400;
}
.profile-page {
    display:flex;
    justify-content:center;
    padding:40px 20px;
    font-family: 'Cairo', sans-serif;
}

.profile-box {
    width: 800px;
    background:#fff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.profile-box h2 {
    text-align:center;
    color:#0054A6;
    margin-bottom:20px;
}

.profile-info p {
    font-size:16px;
    margin:5px 0;
}

.edit-btn {
    padding:8px 15px;
    background:#0054A6;
    color:#fff;
    border:none;
    border-radius:5px;
    cursor:pointer;
    margin-top:10px;
}

.edit-btn:hover {
    background:#003f7f;
}

/* جدول الاستشارات */
.consultation-table {
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

.consultation-table th, .consultation-table td {
    border:1px solid #ccc;
    padding:10px;
    text-align:right;
}

.consultation-table th {
    background:#0054A6;
    color:#fff;
}

/* Modal */
.modal {
    display:none;
    position:fixed;
    z-index:1000;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    justify-content:center;
    align-items:center;
}

.modal-content {
    background:#fff;
    padding:30px;
    border-radius:10px;
    width:400px;
    position:relative;
}

.modal-content h3 {
    margin-top:0;
    color:#0054A6;
    text-align:center;
}

.modal-content input {
    width:100%;
    padding:10px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:5px;
}

.modal-content button {
    width:100%;
    padding:10px;
    background:#0054A6;
    color:#fff;
    border:none;
    border-radius:5px;
    cursor:pointer;
}

.modal-content button:hover {
    background:#003f7f;
}

.close {
    position:absolute;
    top:10px;
    left:15px;
    font-size:22px;
    cursor:pointer;
    color:#333;
}
.hamburger-wrapper {
  display: none;
}

@media(max-width:768px){
  .main-nav ul {
    display: none; 
    flex-direction: column;
    gap: 10px;
    text-align: right;
    background-color: #0054A6;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 100;
  }

  .main-nav ul li a {
    padding: 10px 20px;
  }

  .hamburger-wrapper {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 150;
  }

  .hamburger-btn {
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  .main-nav ul.show {
    display: flex; 
  }
}
.btn-more {
  display: inline-block;
  padding: 10px 25px;
  background: #2e8b57;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-more:hover {
  background: #256f46;
}
/* ====== العنوان ====== */
.container h2 {
    margin-bottom: 25px;
    color: #2c3e50;
}

/* ====== الحقول ====== */
input,
select,
textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px 0;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

/* ====== الأزرار ====== */
button {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #a71d2a;
}

/* ====== رسائل التنبيه ====== */
.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ====== رقم الملف + الأزرار ====== */
.file-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ====== النافذة المنبثقة ====== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: #ffffff;
    padding: 30px;
    width: 420px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    animation: fadeIn 0.3s ease;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

/* ====== حركة بسيطة ====== */
@keyframes fadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ====== متجاوب للجوال ====== */
@media (max-width: 768px) {

    .container {
        margin: 15px;
        padding: 20px;
    }

    .file-search {
        flex-direction: column;
    }

    .modal-content {
        width: 90%;
    }

    button {
        width: 100%;
    }
}