/* الخط الأساسي */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    direction: rtl;
    padding-bottom: 60px;
}

/* العناوين */
h1, h2, h3 {
    color: #0d6efd;
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

/* الحاوية الرئيسية */
.container {
   
    margin: 40px auto;
    background: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* الروابط */
a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #084298;
}

/* النموذج */
form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
    font-size: 15px;
}

form input[type="text"],
form input[type="email"],
form input[type="date"],
form input[type="number"],
form input[type="password"],
form select,
form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 5px;
    transition: border-color 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #0d6efd;
    outline: none;
}

/* الزر */
button,
input[type="submit"] {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button:hover,
input[type="submit"]:hover {
    background-color: #0a58ca;
}

/* الرسائل */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* قائمة بسيطة */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* رأس الصفحة */
.header {
    background-color: #0d6efd;
    color: white;
    padding: 15px 30px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

/* الفوتر */
.footer {
    background-color: #f1f1f1;
    color: #666;
    text-align: center;
    padding: 20px 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ddd;
}
/* تعديل لعرض الأقسام بشكل أفقي في وسط الصفحة */
.sections-container {
    display: flex;
    justify-content: center; /* تموضع الأفقي */
    align-items: center; /* تموضع العمودي */
    gap: 30px;  /* المسافة بين العناصر */
    margin-top: 50px;
}

.institution-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 200px;  /* تحديد عرض مناسب لكل قسم */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.institution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.institution-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;  /* يجعل الصورة دائرية */
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.institution-card:hover img {
    transform: scale(1.1);  /* تكبير الصورة بشكل بسيط */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.institution-card p {
    font-size: 18px;
    font-weight: bold;
    color: #0d6efd;
    margin: 0;
    text-align: center;
}
