.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 600px;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.click-hint {
    font-size: 12px;
    color: #05095e;
    margin-top: 5px;
}


body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #05095e;
    color:#ffffff;
}

footer p {
    max-width: 1000px;
    margin: auto;
    color:#ffffff;
    text-align: center;
}


header {
    position: relative;
    background-color: #ffffff;
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

header .logo {
    width: 90px;
    height: auto;
}

header h2 {
    color: #000000;
    margin: 0;
    text-align: right;
}

header p {
    color: #000000;
    margin: 0;
}

nav {
    background-color:#05095e;
    overflow: hidden;
    direction: rtl;
    position: relative;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* فايرفوكس */
}

nav ul::-webkit-scrollbar {
    display: none; /* كروم وسفاري */
}


nav ul li {
    float: center;
}

nav ul li a {
    display: block;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 10px;
}

nav ul li a:hover {
    background-color:#010431;
}

nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(to right, #05095e, transparent);
  pointer-events: none;
}

 nav ul li a, .dropdown-btn {
      display: block;
      color: #fff;
      padding: 14px 20px;
      text-decoration: none;
      cursor: pointer;
      font-size: 10px;
    }

nav ul li a:hover, .dropdown-btn:hover {
      background-color: #010431;
    }

.dropdown-content {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      background-color: #f9f9f9;
      min-width: 180px;
      z-index: 1;
    }

.dropdown-content a {
      color: black;
      padding: 10px 15px;
      text-decoration: none;
      display: block;
    }

.dropdown-content a:hover {
      background-color: #ddd;
    }

.show {
  display: block !important;
    }


form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: auto;
}

textarea {
    padding: 10px;
    font-family: 'Tajawal', sans-serif;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    width: 80%;
}

button {
    background-color: #05095e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 80%;
    max-width: 200px;
    margin: auto;
}

button:hover {
    background-color: #010539;
}

.container {
    padding: 30px;
    max-width: 1000px;
    margin: auto;
}

.section {
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #000000;
}

p {
    color: #000000;
}

h2 {
    color: #05095e;
    margin-top: 0;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-box {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.service-boxx {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* يخليها تنزل تحت لو المساحة ما تكفي */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}


.service-box:hover {
    background-color: #e0ffe0;
    transform: translateY(-5px);
}

.service-box h3 {
    margin-top: 0;
    color: #333;
}

.service-box p {
    color: #555;
    font-size: 14px;
    margin: 10px 0 0;
}

.service-logo {
    width: 40px;
    height: auto;
    margin-bottom: 10px;
}

.contact-info{
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* يخليها تنزل تحت لو المساحة ما تكفي */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

@media screen and (max-width: 768px) {
    
    
    header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    header .logo {
        width: 70px;  
    }

    header h1 {
        font-size: 20px;
    }

    header p {
        font-size: 14px;
    }

    .container {
        padding: 15px;
    }

    button {
        width: 90%;
    }

    .services {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .service-box {
        padding: 15px;
    }
}
