@import url(https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap);

* {
    box-sizing: border-box;
    color: inherit;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

*, h1, h2, h3, h4, h5, h6 {
    font-family: Cairo, sans-serif;
}

h1 {
    font-size: 38px;
    text-align: center; /* Center align the heading */
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
}

h2 {
        font-size: 32px;
    font-weight: bold;
    text-align: center;
    color: #2c7aa7;
    text-decoration-line: underline;
}

@media (max-width: 768px) {
    h2 {
        font-size: 22px;
    }
}

h3 {
    font-size: 24px;
    text-align: center; /* Center align the heading */
}

@media (max-width: 768px) {
    h3 {
        font-size: 18px;
    }
}

h4 {
    font-size: 18px;
    text-align: center; /* Center align the heading */
}

@media (max-width: 768px) {
    h4 {
        font-size: 14px;
    }
}

h5 {
    font-size: 14px;
    text-align: center; /* Center align the heading */
}

@media (max-width: 768px) {
    h5 {
        font-size: 12px;
    }
}

h6 {
    font-size: 16px;
    text-align: center;
    color: #2C1B99;
    font-weight: bold;
    padding-bottom: inherit;
    padding-top: inherit;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: right;
}

.ina {
    background-color: #efefef;
    min-height: 100vh;
}

.ina h2 {
    margin: -24px 0 24px;
    text-align: center; /* Center align the heading */
}

@media (max-width: 485px) {
    .ina h2 {
        margin: 16px 0;
    }
}

.ina .services h2 {
    margin: 0 0 48px;
    text-align: center; /* Center align the heading */
}

.service-card {
    background-color: #fff;
    background: hsla(0, 0%, 100%, .85);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
    color: #009722;
    cursor: pointer;
    height: 160px;
    margin: 10px;
    padding: 20px;
    position: relative;
    text-align: center; /* Center align the content */
    transition: .5s;
    width: 220px;
}

@media (max-width: 767px) {
    .service-card {
        height: 120px;
        width: 160px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .service-card {
        height: 120px;
        width: 180px;
    }
}

.service-card:hover {
    background-color: #50c878;
    color: #fff;
    transform: scale(1.06);
}

.service-card .icon {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 -2px 4px -2px rgba(0, 0, 0, .5);
    left: 50%;
    padding: 8px;
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    width: 50px;
}

.service-card .icon svg {
    fill: #000;
    height: 36px;
    width: 36px;
}

@media (max-width: 767px) {
    .service-card .icon svg {
        height: 24px;
        width: 24px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .service-card .icon svg {
        height: 28px;
        width: 28px;
    }
}

.service-card .card-title {
    font-size: 20px;
    font-weight: 700;
    left: 50%;
    line-height: 28px;
    padding: 25px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

@media (max-width: 767px) {
    .service-card .card-title {
        font-size: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .service-card .card-title {
        font-size: 18px;
    }
}

.services {
    display: flex;
    flex-direction: column;
    font-family: Cairo, sans-serif;
    justify-content: space-between;
    position: relative;
}

.services .services-container {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin: auto;
    max-width: 800px;
}

@media (max-width: 424px) {
    .services .services-container {
        column-gap: 100px;
        row-gap: 36px;
    }
}

@media (min-width: 425px) and (max-width: 767px) {
    .services .services-container {
        max-width: 600px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .services .services-container {
        max-width: 600px;
    }
}

.services .sevices-btn-login {
    left: 32px;
    position: absolute;
    top: 48px;
}

.form {
    color: #50c878;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    margin: 12px auto;
    max-width: 650px;
    padding: 1rem 1.8rem;
    width: 100%;
}

.form .signup-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

.form .grid-md-2 {
    grid-gap: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 425px) {
    .form .grid-md-2 {
        grid-template-columns: none;
    }
}

.form {
    align-items: center;
    display: flex;
    justify-content: flex-start;
}

.form  {
    color: #ccc;
    text-align: center;
}

.input-label-container .form-label {
    color: #999;
    font-size: 16px;
    pointer-events: none;
    position: absolute;
    left: 15px; /* Align the label from the left */
    top: 50%;
    transform: translateY(-50%);
    transition: all .3s ease;
}

.request_actions {
    display: flex;
    gap: 12px;
    justify-content: center; /* Center align the content */
    max-width: 12rem;
    text-align: center; /* Center align the text */
}

/* تنسيق النص */
body {
    font-family: "Tajawal", sans-serif;
    direction: rtl;
    background: #f2f2f2;
    margin: 0;
    padding: 0;
    font-size: 16px;
    text-align: center;
}

textarea {
    font-family: "Tajawal", sans-serif;
    direction: rtl;
    background: #fff;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* تنسيق النماذج */
form {
    width: 85%;
    margin: 20px auto;
    padding: 20px;
    background: #8d131305;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 10px rgba(1, 0, 0, 0.2);
}

/* تنسيق الحقول للأجهزة الصغيرة */
@media screen and (max-width: 600px) {
    form input,
    form select,
    form textarea {
        width: 90%; /* جعل الحقول تأخذ عرض الشاشة بنسبة أصغر */
        display: block; /* ضمان عرض الحقول كل حقل في سطر منفصل */
        margin: 10px auto; /* توسيط الحقول داخل النموذج */
        padding: 8px; /* زيادة الهامش الداخلي للحقول */
        font-size: 14px; /* تقليل حجم النص في الحقول */
    }
}

form input,
form select,
form textarea {
    font-family: "cairo", sans-serif;
    font-weight: bold;
    display: inline-block;
    width: 40%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    font-size: 16px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    vertical-align: text-top;
    text-align: -webkit-center;}

form textarea {
    height: 100px;
}
input[type="file" i]{
    font-family: "Tajawal", sans-serif;
    display: initial;
    width: fit-content;
    padding: 0px;
    border-radius: 12px;
    border: 0px solid #dfdfdf00;
    margin-bottom: 10px;
    font-size: 14px;
    box-shadow: -10px 5px 21px 0px rgb(24 16 6 / 72%);
 }   
form button[type="submit"] {
    font-family: "cairo", sans-serif;
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    border-radius: 5px;
    padding: 8px 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #c82333;
    border-color: #c82333;
}


/* تنسيق جدول المواعيد */
table {
    width: 70%;
    margin: 20px auto;
    border-collapse: collapse; /* تجميع الحدود */
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

th,
td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
}

th {
    background: #153a62;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
}

td {
    background: #f2f2f2;
}

table tr:hover td {
    background-color: #e6e6e6;
}

table th:first-child,
table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

table th:last-child,
table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* تنسيق الجدول للأجهزة الصغيرة */
@media screen and (max-width: 600px) {
    table {
        width: 70%; /* جعل الجدول يأخذ عرض الشاشة بالكامل */
    }

    /* قم بإضافة أي تعديلات إضافية هنا لتناسب الهواتف المحمولة */
    th,
    td {
        font-size: 14px; /* تقليل حجم الخط */
    }
}

/* تنسيق الجدول للأجهزة الصغيرة */
@media screen and (max-width: 600px) {
    table {
        width: 70%; /* جعل الجدول يأخذ عرض الشاشة بالكامل */
    }
}

input[type=submit] {
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border-color: #28a745;
    border-radius: 5px;
    padding: 8px 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

input[type=submit]:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-success {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
    border-radius: 5px;
    padding: 8px 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    border-radius: 5px;
    padding: 8px 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    border-radius: 5px;
    padding: 8px 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

button {
    font-family: "Tajawal", sans-serif;
    background-color: #28a745;
    color: white;
    border-color: #28a745;
    border-radius: 5px;
    padding: 8px 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
    border-color: #218838;
}

a {
        background-color: transparent;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 700;
}

a:hover {
    background-color: #f2f2f2;
    color: #ff6600;
}
