.section_two .main-news {
    flex: 0 0 48% !important;
}

.section_two .news-category-side {
    flex: 0 0 30.2% !important;
}

.viewAdss p {
    text-align: center;
    width: 100%;
}

.viewAdss p a {
    display: block;
    width: 100%;
}

.h2-head {
    width: 100%;
    color: #f2af2f;
    font-size: 24px;
    padding: 9px 16px;
    border-bottom: 2px solid;
    border-radius: 10px;
}

.stats-box {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.green {
    background-color: #2ecc71;
    color: white;
}

.orange {
    background-color: #f39c12;
    color: white;
}

.blue {
    background-color: #1abc9c;
    color: white;
}

.questions-list {
    list-style-type: none;
    padding: 0;
}

.question-item {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.question-item a {
    color: #272727;
    transition: all 0.5s;
}

.question-item a:hover {
    color: #ffd482;
    transition: all 0.5s;
}

.head3 {
    color: #f2af2f;
}

.qu_anch {
    color: #f2af2f;
}

.qu_anch:hover {
    color: #ffd482;
}

.university-logo {
    width: 70px;
    /* Adjust the size as needed */
    height: 70px;
    /* Adjust the size as needed */
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.NewsBox {
    width: 22%;
    margin: 1rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0px 2px 19px 0px #cbcbcb87;
    display: flex;
    flex-direction: column;
}

.NewsBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-top: 1px solid #eee;
    flex-direction: row-reverse;
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    text-align: right;
    flex: 1;
}

.news-title:hover {
    color: #f2af2f;
}

.university-logo {
    width: 35px;
    height: 35px;
    margin-left: 7px;
}

.university-logo img {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    background-color: #fff;
}

@media (max-width: 768px) {
    .NewsBox {
        width: 100%;
    }

    .addss img {
        width: 100% !important;
    }
}

.pharmancy {
    position: relative;
    margin-top: 20px;
    padding: 0 1%;
}

.phar_section {
    background-color: #444444;
    color: #fff;
    padding: 20px 42px;
    margin-bottom: 30px;
}

.custom_container {
    border-radius: 8px;
    /* box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.16); */
}

.pharmancy .pharmancy-card {
    height: fit-content;
    padding: 15px;
}

.pharmancy .image-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phar_section {
    background-color: #444;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
}

.title-pharmancy {
    font-size: 1.5rem;
    font-weight: 700;
}

.text-content-ph {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

.btn-light {
    background-color: #fff;
    color: #444;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-light:hover {
    background-color: #f1f1f1;
    color: #000;
}

.home-specialities .spec_images_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
    width: 100%;
}

.home-specialities .spec_images_container .spec_block {
    text-align: center;
}

.home-specialities .spec_images {
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 3px solid #f2af2f;
    height: 90px;
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-specialities a {
    text-decoration: none;
}

.home-specialities .spec_images img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.home-specialities span.spec_name {
    display: block;
    color: #272727;
    font-size: 15px;
    margin-top: 5px;
}

.majors {
    background-color: #f9f9f9;
}

.major-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.major-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.five-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 أعمدة */
    gap: 1rem;
    /* المسافة بين العناصر */
    text-align: center;
}

@media (max-width: 992px) {
    .five-cols {
        grid-template-columns: repeat(3, 1fr);
        /* على التابليت 3 */
    }
}

@media (max-width: 576px) {
    .five-cols {
        grid-template-columns: repeat(2, 1fr);
        /* على الموبايل 2 */
    }
}

footer .contain-footer .footer-section {
    display: flex;
    flex-direction: column;
}

footer .logo-section .logo {
    max-height: 63px !important;
    margin-bottom: 0;
}

.foundation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.foundation-list li {
    list-style: none;
}

.foundation-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 55px;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    color: #222;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.foundation-card:hover {
    background: #F2AF2F;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* موبايل */
@media (max-width: 576px) {
    .foundation-card {
        min-width: 90px;
        height: 48px;
        font-size: 14px;
    }
}


.rank-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    justify-content: space-between;
}

.global-rank {
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
}

.sy-rank {
    background: #fff3cd;
    border: 1px solid #ffeeba;
}

.news-text .div_certi h5 {
    color: #F2AF2F
}

.news-page .contain-row .news-image {
    height: 227px !important;
    object-fit: unset;
}

.cover-img {
    position: relative;
    width: 100%;
    margin-bottom: 70px
}

.cover-img .news-image {
    width: 100%;
    height: 300px;
    /* عدّلها حسب التصميم */
    object-fit: cover;
}

.logo-university {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    /* background: #fff; */
    border-radius: 50%;
    padding: 10px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
}

.logo-university img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
}

.mobile-date-views {
    display: none !important;
}

.sidebar-box .hoverTitle:hover {
    color: #F2AF2F !important;

}

@media (max-width: 992px) {
    .urlUni img {
        width: 70px !important;
        height: fit-content !important;
    }

    .mobile-date-views {
        display: flex !important;
        direction: ltr;
        flex-direction: column;
        gap: 11px;
        margin-bottom: 1rem;
    }

    .desktop-date-views {
        display: none !important;
    }

    .news-page .contain-row .news-image {
        height: 130px !important;
    }
}

.urlUni img {
    width: 95px;
    height: fit-content;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
}

.table tbody td {
    width: 33.33%;
}

.news-page .contain-row .news-date .div-share-social ul li {
    height: 35px;
    display: flex;
    align-items: center;
}

/* .news-page .contain-row .news-date .div-share-social ul .link-copy::after {
margin-left: 0 !important;
margin-right: 0 !important;
height: 0 !important;
} */
.news-page .contain-row .news-date .div-share-social ul {
    flex-direction: row-reverse;
}

.address_details h5 {
    margin-bottom: 15px;
    color: #F2AF2F;
}

.rank-table {
    table-layout: fixed;
    width: 100%;
}

.rank-table td {
    width: 33.33%;
    vertical-align: middle;
    padding: 15px;
}

.rank-table img {
    object-fit: cover;
}

.qu_anch:hover {
    color: #F2AF2F;
}

.table>thead,
.table>tbody,
.table thead,
.table thead tr {
    vertical-align: middle !important;
}

.table-bordered>:not(caption)>* {
    border-width: var(--bs-border-width) 0;
    vertical-align: middle !important;
}

.department a {
    display: inline-block;
    width: 100%;
}

.department a:hover {
    color: #fff !important;
}

.contain-row .rank-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    justify-content: space-between;
}

.contain-row .global-rank {
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
}

.contain-row .sy-rank {
    background: #fff3cd;
    border: 1px solid #ffeeba;
}

.contain-row .news-text .div_certi h5 {
    color: #F2AF2F
}

.contain-row .news-image {
    height: 227px !important;
    object-fit: unset;
}

.contain-row .cover-img {
    position: relative;
    width: 100%;
    margin-bottom: 70px
}

.contain-row .cover-img .news-image {
    width: 100%;
    height: 300px;
    /* عدّلها حسب التصميم */
    object-fit: cover;
}

.contain-row .logo-university {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    /* background: #fff; */
    border-radius: 50%;
    padding: 10px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
}

.contain-row .logo-university img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
}

.contain-row .mobile-date-views {
    display: none !important;
}

.contain-row .sidebar-box .hoverTitle:hover {
    color: #F2AF2F !important;

}

@media (max-width: 992px) {
    .contain-row .urlUni img {
        width: 70px !important;
        height: fit-content !important;
    }

    .contain-row .mobile-date-views {
        display: flex !important;
        direction: ltr;
        flex-direction: column;
        gap: 11px;
        margin-bottom: 1rem;
    }

    .contain-row .desktop-date-views {
        display: none !important;
    }

    .contain-row .news-image {
        height: 130px !important;
    }
}

.contain-row .urlUni img {
    width: 95px;
    height: fit-content;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
}

.contain-row .table tbody td {
    width: 33.33%;
}

.contain-row .news-page .contain-row .news-date .div-share-social ul li {
    height: 35px;
    display: flex;
    align-items: center;
}

/* .news-page .contain-row .news-date .div-share-social ul .link-copy::after {
margin-left: 0 !important;
margin-right: 0 !important;
height: 0 !important;
} */
.contain-row .news-page .contain-row .news-date .div-share-social ul {
    flex-direction: row-reverse;
}

.contain-row .address_details h5 {
    margin-bottom: 15px;
    color: #F2AF2F;
}

.contain-row .rank-table {
    table-layout: fixed;
    width: 100%;
}

.contain-row .rank-table td {
    width: 33.33%;
    vertical-align: middle;
    padding: 15px;
}

.contain-row .rank-table img {
    object-fit: cover;
}

.contain-row .qu_anch:hover {
    color: #F2AF2F;
}

.contain-row .table>thead,
.contain-row .table>tbody,
.contain-row .table thead,
.contain-row .table thead tr {
    vertical-align: middle !important;
}

.contain-row .table-bordered>:not(caption)>* {
    border-width: var(--bs-border-width) 0;
    vertical-align: middle !important;
}

.contain-row .department a {
    display: inline-block;
    width: 100%;
}

.contain-row .department a:hover {
    color: #fff !important;
}

.programs-open-educate .collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* تصميم الكارد */
.programs-open-educate .college-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.programs-open-educate .college-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.programs-open-educate .department a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* 📱 تابلت */
@media (max-width: 992px) {
    .programs-open-educate .collage {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 📱 موبايل */
@media (max-width: 576px) {
    .programs-open-educate .collage {
        grid-template-columns: 1fr;
    }
}
