:root {
    --main-color: #4a90e2;
    --hover-color: #357abd;
    --border-radius: 3px;
    --transition-speed: 0.3s ease-in-out;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", sans-serif;
}
body {
    min-height: 100vh; /* اجعل ارتفاع الصفحة على الأقل ارتفاع الشاشة */
    display: flex; /* استخدم فليكس بوكس */
    flex-direction: column;
    background-color: #f5f5f5;
}
input:focus {
    outline: none;
}

header {
    background-color: var(--main-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    position: relative;
    border-bottom: 1px solid white;
    z-index: 1000;
    height: 80px;
}
header .logo a {
    text-decoration: none;
    color: white;
    font-size: 32px;
    font-family: "Cairo";
    font-weight: 700;
}
header nav {
    display: flex;
}
header nav > ul {
    display: flex;
    list-style-type: none;
    gap: 15px;
    align-items: center;
    justify-content: center;
}
header nav > ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

header nav > ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

header .login-btn,
.profile .login-btn {
    background-color: white;
    color: var(--main-color);
    padding: 5px 11px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border: navajowhite;
    font-family: "Cairo";
    font-size: 15px;
    cursor: pointer;
}

header .btn {
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-button {
    background-color: transparent;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 16px;
    border: 1px solid #fff;
    font-family: "cairo", sans-serif;
    transition: 0.3s;
}
.dropdown-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    margin-top: 2px;
}

.showDropdownMenu {
    display: block;
}
.dropdown-menu a {
    color: var(--main-color);
    padding: 7px 10px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: 0.2s;
}

.dropdown-menu .logout-btn {
    background: none;
    border: none;
    font-size: 16px;
    direction: rtl;
    font-family: "Cairo";
    width: 100%;
    text-align: right;
    cursor: pointer;
    padding: 7px 10px;
    color: var(--main-color);
    font-weight: 600;
}

.dropdown-menu a:first-child {
    border-bottom: 1px solid #ccc;
}

.dropdown-menu .logout-btn:hover {
    background-color: rgba(0, 0, 0, 0.219);
}
.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.219);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    transition: 0.2s;
}
.overlay.active {
    display: block;
}
@media (min-width: 769px) {
    header i.btn {
        display: none;
    }
    .mobile-menu {
        display: none;
    }
}
@media (max-width: 768px) {
    header nav > ul,
    header .profile {
        display: none;
    }
}
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 80px;
        width: 250px;
        height: calc(100vh - 80px);
        left: -100%;
        background-color: var(--main-color);
        text-align: right;
        flex-direction: column;
        transition: 0.2s;
        z-index: 1000;
    }
    .mobile-menu ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        overflow-y: auto;
    }
    .mobile-menu ul li {
        padding: 25px;
        border-bottom: 1px solid #eee;
        transition: 0.2s;
    }
    .mobile-menu ul li a:not(.login-btn) {
        text-decoration: none;
        color: #fff;
        font-weight: bold;
        width: 100%;
        display: block;
    }
    .mobile-menu ul li:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    .mobile-menu .profile {
        padding: 10px;
        text-align: center;
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
    }
    .mobile-menu .profile .userProfile {
        color: white;
        text-decoration: none;
        font-size: 19px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .mobile-menu .profile .logout-btn {
        background-color: white;
        color: var(--main-color);
        padding: 5px 11px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: bold;
        transition: 0.3s;
        border: navajowhite;
        font-family: "Cairo";
        font-size: 15px;
        cursor: pointer;
    }

    .profile .login-btn {
        display: block;
    }
}
.mobile-menu.open {
    left: 0;
}
.hero {
    background-color: var(--main-color);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}
/* .hero .hero-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
}
.hero .hero-content p {
    font-size: 19px;
    margin-bottom: 20px;
} */
.main-text {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffffff;
    direction: rtl;
    text-align: center;
    margin-bottom: 10px;
}

.sub-text {
    font-size: 1.2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.cursor {
    animation: blink 0.7s steps(1) infinite;
    color: #ffffff;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero .hero-content input {
    border-radius: var(--border-radius);
    padding: 10px;
    border: none;
    width: 200px;
    height: 40px;
}
.hero .hero-content input::placeholder {
    font-family: "Cairo", sans-serif;
}
.hero .hero-content .search {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.hero .hero-content .search select {
    border-radius: var(--border-radius);
    padding: 5px;
    border: none;
    width: 100px;
    font-size: 17px;
    height: 40px;
}
.hero .hero-content .search-button {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 700;
    background-color: #ffffff;
    height: 40px;
    cursor: pointer;
    font-family: "cairo", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
}
#searchinput.input-error {
    border: 2px solid #b93d40;
}
@media (max-width: 500px) {
    .hero .hero-content .search {
        flex-direction: column;
    }
    .hero .hero-content .search input,
    .hero .hero-content .search select,
    .hero .hero-content .search button {
        width: 100%;
    }
}
/* services page */
.filter-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: auto;
}

.filter-box select {
    cursor: pointer;
}

.filter-box select,
.filter-box .filter-input {
    padding: 5px;
    font-size: 16px;
    border-radius: 10px;
    min-width: 155px;
    border: 1px solid #ccc;
    transition: border-color 0.3s;
    font-family: "cairo", sans-serif;
    flex: 1 1 18%;
}

.filter-box select:focus,
.filter-box .filter-input:focus {
    border-color: #3498db;
    outline: none;
}

.filter-box .filter-btn {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-clear-btn {
    background-color: rgb(201, 46, 46);
    color: white;
    border: none;
    padding: 7px;
    font-size: 14px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.filter-box .filter-btn:hover {
    background-color: var(--hover-color);
}

@media (max-width: 768px) {
    .filter-box select,
    .filter-box .filter-input,
    .filter-box .filter-btn {
        flex: 1 1 45%;
    }
}
/* cards */
.cards {
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 0px 20px;
}
.cards.services {
    padding-top: 20px;
}

.cards .cards-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 20px;
}

.cards .cards-section-header a {
    border: 1px solid var(--main-color);
    padding: 5px 10px;
    text-decoration: none;
    color: var(--main-color);
    font-size: 14px;
}

.cards .cards-section-header a:hover {
    background-color: var(--main-color);
    color: white;
}

.cards .cont {
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    align-items: start;
}
.cards .cont h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}
/* .service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
} */
.cards .cont .service-card {
    background-color: #ffffff;
    text-align: center;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
}
.cards .cont .service-card .card-service-image {
    display: flex;
    justify-content: center;
}
.cards .cont .service-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    margin: 5px auto;
}
.cards .cont .service-card h3 {
    color: var(--main-color);
    font-size: 20px;
    margin-bottom: 10px;
}
.cards .cont .service-card .service-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}
.cards .cont .service-card .service-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}
.cards .cont .service-description {
    color: #555;
    margin-bottom: 5px;
    font-size: 14px;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cards .cont .service-card .service-location i {
    color: var(--main-color);
}
.cards .cont .service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.cards .cont .service-card .view-btn {
    background-color: var(--main-color);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    font-family: "Cairo";
    display: block;
    width: 100%;
    border-radius: var(--border-radius);
}
.cards .cont .service-card a {
    text-decoration: none;
    color: white;
}
.cards .cont .service-card .view-btn:hover {
    background-color: var(--hover-color);
}
@media (max-width: 767px) {
    .cards {
        margin: 0;
    }
}
/* cats */
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}
.cats h2 {
    margin: 0px auto 20px;
    width: fit-content;
    position: relative;
}
.cats h2::before {
    content: "";
    height: 3px;
    position: absolute;
    width: 100px;
    background-color: var(--main-color);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

.categories .card {
    background-color: white;
    width: 180px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.categories .card i {
    font-size: 40px;
    color: var(--main-color);
    margin-bottom: 10px;
}

.categories .card h3 {
    margin: 10px 0 5px;
    color: var(--main-color);
}

.categories .card p {
    margin: 0 0 10px;
    color: #666;
}

.categories .card a {
    display: inline-block;
    padding: 5px 7px;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    text-decoration: none;
    font-size: 14px;
}

.categories .card a:hover {
    background-color: var(--main-color);
    color: white;
}
.main-footer {
    background-color: #212529;
    color: #fff;
    padding: 40px 0 20px;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1 1 200px; /* flex-grow, flex-shrink, flex-basis: تم تقليل العرض الأساسي */
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid #373b3e;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li:hover {
    color: var(--main-color);
    transform: translateX(-5px);
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: #fff;
    margin-left: 15px;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #373b3e;
}

.social-icons a:hover {
    color: #007bff;
}

/* Contact Info */
.contact-email p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-email p i {
    color: #007bff;
    font-size: 1.1rem;
}

/* Footer Bottom - حقوق الملكية */
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* Media Queries for Responsiveness */
@media (max-width: 767px) {
    .footer-columns {
        flex-direction: column; /* ترتيب الأعمدة فوق بعضها البعض على الشاشات الصغيرة */
        align-items: flex-start; /* محاذاة الأعمدة لليمين */
        gap: 40px; /* زيادة المسافة بين الأعمدة عند الترتيب العمودي */
    }

    .footer-col {
        min-width: 100%; /* جعل العمود يأخذ عرض كامل الشاشة */
        text-align: right; /* محاذاة النص لليمين */
    }

    .social-icons {
        justify-content: flex-start; /* محاذاة الأيقونات لليمين */
    }
}
/* add services */
.add-service-container {
    max-width: 800px;
    margin: 10px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.add-service-container .form-title {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.add-service-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 10px;
}

.add-service-container .form-group {
    display: flex;
    flex-direction: column;
}

.add-service-container .form-group.full-width {
    grid-column: 1 / -1;
}

.add-service-container label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.add-service-container .required {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 5px;
}

.add-service-container label .phone-explame {
    font-size: 15px;
    color: gray;
}

.add-service-container input[type="text"],
.add-service-container input[type="file"],
.add-service-container select,
.add-service-container textarea {
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.add-service-container input[type="file"] {
    padding: 8px;
    background: #f8f9fa;
    border-style: dashed;
}

.add-service-container select {
    cursor: pointer;
    padding-left: 40px;
}

.add-service-container textarea {
    min-height: 120px;
    resize: vertical;
    max-height: 330px;
}

.add-service-container .submit-btn {
    background-color: var(--main-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    font-family: "cairo", sans-serif;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-buttons .edit-btn {
    background-color: var(--main-color);
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    font-family: "cairo", sans-serif;
}
.form-buttons .btn-secondary {
    background-color: #434a50;
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(41, 42, 46, 0.3);
    text-decoration: none;
}
.form-buttons .btn-secondary:hover {
    background-color: #393e42;
}

.add-service-container .submit-btn:hover,
.add-service-container .form-buttons .edit-btn:hover {
    background-color: var(--hover-color);
}

.form-group {
    position: relative;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .add-service-container .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .add-service-container input[type="file"] {
        max-width: 100%;
        width: 100%;
    }

    .add-service-container {
        padding: 25px;
        margin: 10px;
    }

    .navbar-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-links {
        gap: 20px;
    }
}

.error {
    color: #b71c1c;
    background: #ffebee;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 8px;
    display: inline-block;
}
/* end add services */
/* service detail  */
.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px 0;
}

.breadcrumb-text {
    background-color: var(--main-color);
    padding: 7px;
    color: white;
}

.breadcrumb-text a {
    color: white;
    text-decoration: none;
}
.breadcrumb-text a:hover {
    text-decoration: underline;
}

.content-wrapper {
    display: flex;
    gap: 1.5rem;
}

.content-wrapper .service-details {
    display: flex;
    flex-direction: row;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 3;
}

.content-wrapper .service-image {
    flex: 0 0 40%;
}

.content-wrapper .service-image img {
    width: 100%;
    height: auto;
    max-width: 300px;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.content-wrapper .service-info {
    flex: 0 0 60%;
    padding: 1.5rem;
}

.content-wrapper .service-title {
    font-size: 1.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 0.5rem;
}

.content-wrapper .service-location {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: var(--main-color);
    gap: 5px;
}

.content-wrapper .service-date span {
    color: #333;
    margin-left: 0.5rem;
}

.content-wrapper .service-description {
    margin-bottom: 1rem;
}

.content-wrapper .service-description h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.content-wrapper .service-description p {
    line-height: 1.6;
    color: #555;
}

.content-wrapper .provider-box {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    flex: 1;
    min-width: 220px;
    max-height: 300px;
    text-align: center;
}

.content-wrapper .provider-title {
    font-size: 1.2rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 0.5rem;
}

.content-wrapper .provider-name {
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

.content-wrapper .provider-date {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.content-wrapper .contact-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--main-color);
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.content-wrapper .contact-button:hover {
    background-color: var(--hover-color);
}

.content-wrapper .phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: var(--main-color);
    gap: 5px;
}

.content-wrapper .phone-number .number {
    font-weight: bold;
    font-size: 20px;
}

.content-wrapper .phone-icon {
    margin-left: 5px;
}

/* التوافق مع الأجهزة المحمولة */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }

    .content-wrapper .service-details {
        flex-direction: column;
    }

    .content-wrapper .service-image {
        flex: none;
        
        margin: auto;
        margin-top: 10px;
        padding: 10px;
    }

    .content-wrapper .service-info {
        flex: none;
        width: 100%;
    }

    .content-wrapper .provider-box {
        margin-top: 1.5rem;
    }
}
/* end service detail */
/* contact page */
.main-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-size: 36px;
    color: var(--main-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.contact-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.contact-info h3 {
    color: var(--main-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.contact-info p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #c3e6cb;
}
.error-message-alert {
    background: #edd4d4;
    color: #9c0a0a;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #e6c3c3;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .contact-container {
        margin: 10px;
        padding: 30px 20px;
    }

    .contact-title {
        font-size: 28px;
    }
}
/* end contact page */

/* start user profile page  */
.profile-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
}

/* Profile Header */
.profile-page-header {
    background-color: var(--main-color);
    color: white;
    padding: 40px 30px;
    border-radius: 3px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.profile-page-name {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.profile-page-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.profile-page-info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.profile-page-info-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 5px;
}

.profile-page-info-value {
    font-size: 1.1em;
    font-weight: bold;
}

/* Services Section */
.profile-page-services-section {
    background: white;
    border-radius: 3px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.profile-page-section-title {
    font-size: 1.8em;
    color: var(--main-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.profile-page-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.profile-page-service-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.profile-page-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
    border-color: var(--main-color);
}

.profile-page-service-title {
    font-size: 1.3em;
    color: #2d3748;
    font-weight: bold;
    margin-bottom: 15px;
}

.profile-page-service-description {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.7;
}

.profile-page-service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #718096;
}

.profile-page-service-price {
    color: var(--main-color);
    font-weight: bold;
    font-size: 1.1em;
}

.profile-page-service-date {
    background: #e2e8f0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
}

.profile-page-view-service-btn {
    background: var(--main-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: bold;
    transition: var(--transition-speed);
    width: 100%;
    text-decoration: none;
}

.profile-page-view-service-btn:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-page-container {
        padding: 20px 15px;
    }

    .profile-page-header {
        padding: 30px 20px;
    }

    .profile-page-name {
        font-size: 1.8em;
    }

    .profile-page-info {
        grid-template-columns: 1fr;
    }

    .profile-page-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-page-service-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Loading Animation */
.profile-page-service-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.profile-page-service-card:nth-child(1) {
    animation-delay: 0.1s;
}
.profile-page-service-card:nth-child(2) {
    animation-delay: 0.2s;
}
.profile-page-service-card:nth-child(3) {
    animation-delay: 0.3s;
}
.profile-page-service-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* end user profile page  */

/* start logged in user profile page  */
.user-profile-page-main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.user-profile-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.user-profile-page-head h2 {
    color: var(--main-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.user-profile-page-head a {
    background-color: var(--main-color);
    color: white;
    padding: 5px;
    text-decoration: none;
}
.user-profile-page-head a i {
    margin-right: 5px;
}
.user-profile-page-head a:hover {
    background-color: var(--hover-color);
}

/* Services Grid */
.user-profile-page-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.user-profile-page-service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.user-profile-page-service-card:hover {
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
    border: 1px solid var(--main-color);
}

.user-profile-page-service-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.user-profile-page-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-page-service-content {
    padding: 15px;
}

.user-profile-page-service-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.8rem;
}

.user-profile-page-service-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    width: 300px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-profile-page-service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.user-profile-page-service-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
}

.user-profile-page-service-time {
    color: #888;
    font-size: 0.8rem;
}

.user-profile-page-service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile-page-service-card-btns {
    display: flex;
    gap: 10px;
}

.user-profile-page-service-card-status {
    flex-shrink: 0;
}

/* status */
.user-profile-page-service-card-status .status {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
}

.user-profile-page-service-card-status .status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.user-profile-page-service-card-status .status.accepted {
    background-color: #d4edda;
    color: #155724;
}

.user-profile-page-service-card-status .status.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.user-profile-page-service-card-status .status.hidden {
    background: #e2e3e5;
    color: #495057;
}
/* status */

.user-profile-page-btn {
    padding: 5px 10px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.user-profile-page-btn-view {
    background-color: var(--main-color);
    color: white;
}

.user-profile-page-btn-view:hover {
    background-color: var(--hover-color);
}

.user-profile-page-btn-edit {
    background: transparent;
    color: #3b8539;
    border: 1px solid #3b8539;
}

.user-profile-page-btn-edit:hover {
    background-color: #3b8539;
    color: white;
}

.user-profile-page-btn-delete {
    background: transparent;
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.user-profile-page-btn-delete:hover {
    background-color: #ff6b6b;
    color: white;
}

/* Account Management Sections */
.user-profile-page-account-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.user-profile-page-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-profile-page-form-group {
    margin-bottom: 1.2rem;
}

.user-profile-page-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-profile-page-user-email {
    padding: 8px 12px;
    border: 1px solid #6b7280;
    background-color: #6b71788c;
}

.user-profile-page-form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e8ed;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: #fafbfc;
}

.user-profile-page-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.user-profile-page-btn-primary {
    background-color: var(--main-color);
    color: white;
    padding: 0.8rem 2rem;
}

.user-profile-page-btn-primary:hover {
    background-color: var(--hover-color);
}

.user-profile-page-btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 0.8rem 2rem;
}

.user-profile-page-btn-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}
/* login page styles */
.login-box-cont {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
}

.login-box {
    background-color: #ffffff;
    max-width: 350px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 15px;
    border: 1px solid var(--main-color);
}

.login-box label {
    display: block;
    text-align: right;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.password,
.email,
.confirm-password,
.fullname {
    width: 100%;
    padding: 10px;
    margin-bottom: 7px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s ease;
}

.view-pass {
    display: flex;
    gap: 5px;
    margin: 10px;
}

.password:focus,
.email:focus {
    border-color: var(--main-color);
    outline: none;
}

.login-box .login-btn {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    font-family: "Cairo";
    display: block;
    width: 100%;
    border-radius: var(--border-radius);
}

.login-box .login-btn:hover {
    background-color: var(--hover-color);
}

.register-link {
    margin-top: 15px;
    font-size: 13px;
}

.register-link a {
    color: var(--main-color);
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}
/* end login page styles */
/* Responsive Design */
@media (max-width: 768px) {
    .user-profile-page-nav-menu {
        display: none;
    }

    .user-profile-page-services-grid {
        grid-template-columns: 1fr;
    }

    .user-profile-page-main-container {
        padding: 0 1rem;
    }

    .user-profile-page-form-row {
        grid-template-columns: 1fr;
    }

    .user-profile-page-btn-actions {
        flex-direction: column;
    }
}
/* end logged in user profile page  */

/* error page styles */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
    background-color: #f5f5f5;
    text-align: center;
}

.error-container .box {
    background-color: white;
    padding: 32px;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-container .box .code {
    font-size: 64px;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 8px;
}

.error-container .box .message {
    font-size: 24px;
    color: #374151;
    margin-bottom: 16px;
}

.error-container .box .sup-message {
    font-size: 17px;
    color: #4b5563;
    margin-bottom: 32px;
}

.error-container .box a {
    display: inline-block;
    background-color: var(--main-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.error-container .box a:hover {
    background-color: var(--hover-color);
}
/* 🎯 وسائط استجابة للشاشات الصغيرة */
@media (max-width: 576px) {
    .error-container .box {
        padding: 19px;
    }

    .error-container .box .code {
        font-size: 45px;
    }

    .error-container .box .message {
        font-size: 17px;
    }

    .error-container .box .sup-message {
        font-size: 15px;
    }

    .error-container .box a {
        font-size: 15px;
        padding: 8px 16px;
    }
}
