/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Search Container */
.yousefa7md_search_container {
    max-width: 700px;
    margin: 30px auto;
    padding: 15px;
    background: linear-gradient(135deg, #b62627, #e74c3c);
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    direction: rtl;
    position: relative;
}

.search_wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.search_wrapper input {
    width: 100%;
    padding: 14px 100px 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    background: #fff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search_wrapper input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.search_wrapper button {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #b62627;
    font-size: 1.3em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search_wrapper button:hover {
    color: #fff;
}

.search_wrapper .search-loading {
    position: absolute;
    right: 15px;
    color: #fff;
    font-size: 1.3em;
}

/* Members Grid */
.am_s_items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px 5%;
    direction: rtl;
}

.am_s_item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.am_s_item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.am_s_photo img {
    width: 100%;
    max-width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #b62627;
}

.am_s_flag img {
    width: 45px;
    height: 35px;
    margin: 10px 0;
}

.am_s_amname {
    font-size: 1.5em;
    font-weight: 700;
    color: #b62627;
    margin: 10px 0;
}

.am_s_specializationfield {
    font-size: 1em;
    color: #6c757d;
    margin-bottom: 15px;
}

.am_s_hr {
    border-top: 2px dashed #dee2e6;
    margin: 15px 0;
}

.am_s_2item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.am_s_accreditation_number_field,
.am_s_degree_field {
    flex: 1;
    min-width: 130px;
}

.am_s_name {
    font-size: 0.95em;
    color: #b62627;
    margin-bottom: 5px;
}

.am_s_val {
    font-size: 1em;
    color: #343a40;
    font-weight: 600;
}

.no_results {
    text-align: center;
    color: #e74c3c;
    font-size: 1.2em;
    margin: 30px 0;
}

/* Pagination */
.paginationYousefA7md {
    text-align: center;
    margin: 40px 0;
}

.paginationYousefA7md a {
    display: inline-block;
    padding: 12px 20px;
    margin: 0 5px;
    background: #b62627;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.paginationYousefA7md a:hover {
    background: #e74c3c;
}

.paginationYousefA7md .current {
    background: #343a40;
    color: #fff;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .am_s_items {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .yousefa7md_search_container {
        max-width: 90%;
        padding: 10px;
    }

    .am_s_2item {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .am_s_items {
        grid-template-columns: 1fr;
    }

    .search_wrapper input {
        padding: 12px 45px 12px 15px;
        font-size: 1em;
    }

    .am_s_photo img {
        max-width: 150px;
        height: 150px;
    }
}

/* Additional Styles for Buttons and Images */
.delete-button {
    background-color: #e74c3c !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.delete-button:hover {
    background-color: #c0392b !important;
}

.nfimg {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.imgFlag {
    width: 35px;
    height: 35px;
}

/* Search Box Section */
.yousefa7md_SearchBox {
    margin: 40px 5%;
    min-height: 300px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.yousefa7md_sb1 {
    background: url('https://trainprogacademy.com/wp-content/uploads/2023/01/builderon-subscribe-shape-1.png') no-repeat center right;
    background-size: contain;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.yousefa7md_sb2 {
    background: url('https://trainprogacademy.com/wp-content/uploads/2022/11/HKBciPVc9k.jpg') no-repeat center;
    background-size: cover;
    opacity: 0.2;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.yousefa7mdDivAllBox {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
}

.yousefa7md_sb3 {
    width: 400px;
    height: 450px;
    position: absolute;
    bottom: 0;
}

.yousefa7md_sb4 {
    position: absolute;
    bottom: 80px;
    width: 100%;
    padding-right: 15%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yousefa7md_sb5 h3 {
    color: #fff;
    font-size: 1.8em;
    margin-right: 100px;
}

.yousefa7md_sb6 input[type="search"] {
    border-radius: 10px;
    width: 35%;
    padding: 12px;
    border: none;
    font-size: 1em;
}

.yousefa7md_sb6 button {
    color: #fff;
    background-color: #b62627;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 1em;
    border: none;
    cursor: pointer;
}

.yousefa7md_sb6 button:hover {
    background-color: #e74c3c;
}

@media screen and (max-width: 1221px) {
    .yousefa7md_sb3 { display: none; }
    .yousefa7md_SearchBox { margin: 20px 10px; }
    .yousefa7md_sb4 { gap: 10px; bottom: 60px; padding-right: 10%; }
    .yousefa7md_sb5 h3 { margin-right: 20px; font-size: 1.5em; }
    .yousefa7md_sb6 input[type="search"] { width: 50%; }
}

@media screen and (max-width: 612px) {
    .yousefa7md_sb4 { bottom: 50px; padding-right: 0; }
    .yousefa7md_sb6 { display: flex; flex-direction: column; align-items: center; gap: 10px; }
    .yousefa7md_sb5 h3 { margin-right: 15%; font-size: 1.2em; }
    .yousefa7md_sb6 input[type="search"] { width: 80%; font-size: 0.9em; }
    .yousefa7md_sb6 button { font-size: 0.9em; }
}

/* Buttons Section */
.yousefa7md_aamsBTNS {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 30px 5%;
    flex-wrap: wrap;
    justify-content: center;
}

.yousefa7md_aamsBTN {
    padding: 20px;
    border: 2px solid #926803;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.yousefa7md_aamsBTN:hover {
    border-color: #b62627;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.yousefa7md_aamsBTN_img {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
}

.yousefa7md_aamsBTN_text {
    color: #343a40;
    font-weight: 700;
    font-size: 1.1em;
}