body {
    font-family: 'Cairo', 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.seo-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

input, button, textarea, input[type="submit"] {
    font-family: 'Cairo', 'Roboto', sans-serif;
}

header {
    background-color: #3a9ad9;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* محتوى الصفحة */
.profile-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    flex: 1; /* يضمن تمدد المحتوى لملء المساحة بين الهيدر والفوتر */
}

.profile-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.profile-container img {
    max-width: 150px;
    border-radius: 50%;
    margin: 10px 0;
}

.profile-container p {
    margin: 10px 0;
    color: #333;
}

.profile-container .badge {
    display: inline-block;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    background-color: #05507BFF;
    color: white;
    font-size: 16px;
}

.profile-container .button-group {
    margin: 20px 0;
}

.profile-container .button-group button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #444;
    color: white;
    transition: background-color 0.3s ease;
}

.profile-container .button-group button:hover {
    background-color: #333;
}

/* معرض الصور */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery-item {
    flex-basis: calc(33.333% - 10px);
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* الصورة الشخصية */
.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

/* الفوتر */
footer {
    background-color: #3a9ad9;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    width: 100%;
    margin-top: auto;
}

/* ميديا كويري لشاشات أصغر من 768 بكسل */
@media (max-width: 768px) {
    .profile-container {
        padding: 15px;
        margin: 10px auto; /* تأكد من أن الهامش متساوي على الجانبين */
        width: 95%;    
    }

    .profile-container h2 {
        font-size: 20px;
    }

    .profile-container .button-group button {
        padding: 8px 15px;
        margin: 5px 0;
        width: 50%;
    }

    .gallery-item {
        flex-basis: calc(100% - 10px);
    }
}