

/* Greating */
#greating {
    margin-top: 90px;
}

#portal-greating {
    text-align: center;
    margin-top: 190px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 85px;
    background: linear-gradient(to right, #104091, #0074d9); /* الأزرق الغامق إلى الفاتح */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#greating p {
    text-align: center;
    font-size: 30px;
    font-family:"Tajawal", sans-serif;
}

#choosing-school {
    display: flex;
    margin: 50px 25% 70px 25%;
    justify-content: space-evenly;

}

#choosing-school a {
    width: 45%;
}

#choosing-school button {
    padding: 9px 50px;
    background: linear-gradient(70deg, #103591, #497f91);
    color: white;
    border: none;
    width: 100%;
    font-size: 20px;
    cursor: pointer;
    transition:  transform 0.3s ease, box-shadow 0.3s ease;
}

#choosing-school button:hover {
    background: none; /* smoother transition */
    background-color: #ff4b2b;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#institute-button {
    border-radius: 20px 7px 7px 7px;
}

#college-button {
    border-radius: 7px 7px 20px 7px;
}

/* Last news section */




.subtitle {
    padding: 40px 70px 10px 0;
    font-size: 50px;
    text-align: right;
}

.p-text {
    padding: 5px 70px 40px 0;
    font-size: 30px;
    text-align: right;
    max-width: 900px;
    margin-left: auto;
}

#last-news {
    padding: 60px 20px;
    background-color: white;
    color: black;
    text-align: center;
}

#last-news .subtitle {
    color: black;
    margin-bottom: 15px;
    font-size: 2.5em;
}

#last-news .p-text {
    color: black;
    font-size: 1.2em;
    margin-bottom: 40px;
}

#news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-post {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 400px;
}

.news-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.news-post h2 {
    color: #2c3e50;
    margin: 15px 0;
    font-size: 1.4em;
    line-height: 1.4;
}

.news-post p {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
}

.news-post button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    margin-top: auto;
}

.news-post button:hover {
    background: #0056b3;
}

/* تحسينات للعرض على الجوال */
@media (max-width: 768px) {
    #last-news .subtitle {
        font-size: 2em;
    }
    
    #news {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-post {
        min-height: 350px;
        padding: 20px;
    }
    
    .news-post h2 {
        font-size: 1.2em;
    }
}

/* Search section */


#search-section-div, #result-search-sectoin-box {
    display: flex;
    width: fit-content;
    margin-right: 70px;
    margin-left: auto;
}

#search-section div input {
    width: 700px;
    height: 70px;
    margin-right: 0;
    border: none;
    background-color: rgb(210, 210, 210);
    padding: 20px;
    text-align: right;
    border-radius: 20px 0 0 20px;
    font-size: 20px;
}

#search-section-div button {
    background-color: rgb(210, 210, 210);
    margin-left: 0;
    border: none;
    height: 70px;
    padding-right: 20px;
    border-radius: 0 20px 20px 0;
    font-size: 40px;
}

#search-section div .search-icon {
    font-size: 30px;
}

#search-section div input:focus {
    outline: none;
    border: none;
}




/* Feedback */
#web-feedback {
    background-color: #eef2f5;
    padding-bottom: 20px;
}

#feedback-container {
    width: 80%;
    margin: 40px auto;
}

#feedback-h1 {
    margin-right: 0 !important;
    padding-right: 0;
}

#feedback-text, #feedback-text2 {
    width: 80%;
    padding-right: 0;
    max-width: 1000px;
    margin: 30px 0 30px auto;
    font-size: 25px;
    text-align: right;
    
}

#highlights {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    gap: 10px;
    margin-top: 60px;
    margin-bottom: 60px;
}

#highlights div {
    background-color: white;
    padding: 20px 35px;
    width: 30%;
    text-align: center;
    font-weight: 100 !important;
}

#highlights div h2 {
    font-size: 27px;
    font-weight: 100 !important;
}

#right-hightlight {
    border: 2px solid rgb(0, 89, 255);
    border-radius: 10px 10px 50px;
}

#meddil-hightlight {
    border: 2px solid rgb(0, 181, 0);
    border-radius: 10px;
}

#left-hightlight {
    border: 2px solid red;
    border-radius: 10px 10px 10px 50px;
}

/* Contact with us */
#out-information {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 30px auto;
}

.info-post {
    border: black solid 1px;
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
    margin: 10px auto 10px auto;
    padding: 10px 20px;
    width: 100%;
    border-radius: 15px;
    background-color:white;
    max-width: 900px;
}
.info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.info img {
    height: 30px !important;
    width: 30px !important;
    margin-left: 30px;
}

.info button {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-left: auto;
    margin-top: 10px;
    padding: 5px 15px;
    background: linear-gradient(90deg, #107673, #109075);
    color: white;
    font-size: 20px;
    border: black solid 1px;
    border-radius: 30px 10px 30px 10px;
    transition: background-color 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.info button:hover {
    background: #107673; /* smoother transition */
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: none;
}

#contactDev {
    background: linear-gradient(90deg, #103490, #3589e2) !important;
}

.personal-img {
    background-color: rgb(204, 204, 204);
    width: 200px ;
    height: 200px ;
    border-radius: 20px;
    margin: 10px 10px 10px 30px;
}

#email-info-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: black solid 1px;
    border-radius: 15px;
    padding: 10px 20px;
    width: 100%;
    background: linear-gradient(90deg, #103b91, #4265aa);
    color: white;
    margin-right: auto;
    margin-left: auto;
    max-width: 900px;
}

#info-post1 {
    border-top-left-radius: 100px;
}

#info-post1 .personal-img {
    border-top-left-radius: 0;
}

#info-post2 {
    border-bottom-right-radius: 100px;
}

#info-post2 .personal-img {
    border-bottom-right-radius: 100px;
    border-bottom-left-radius: 0;
}


/* Major titles style */

.title-div {
    margin-top: 130px;
    width: 100%;
}

.title-hr {
    border-top: rgb(255, 255, 255) solid 2px;
    margin-right: auto;
    margin-left: auto;
    width: 80%;
    
}

.title-h1 {
    margin: 10px auto;
    text-align: center;
}


/* Majors list style */

.majors-div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 10px auto;
    width: 90%;
    justify-content: space-evenly;
    align-items: center;
    padding: 15px;
}

.major {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 18%;
    height: 90px;
    margin: 10px;
    padding: 5px;
    border: rgb(89, 89, 89) solid 2px;
    cursor: pointer;
    text-align: center;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    border-radius: 10px;
    background: linear-gradient(90deg, #0004287f, #004e9257);
    transition: box-shadow 0.3s ease-in-out;
}

@media (max-width: 1430px) {
    .major {
        width: 25%;
    }
}

@media (max-width: 870px) {
    .major {
        width: 30%;
    }
}

@media (max-width: 700px) {
    .major {
        width: 50%;
    }
}

.major h3 {
    margin: 5px;
    color: rgb(255, 255, 255);
}

.major:hover {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.401) ;
}

/* Making the page responsive */


/* Greating */
@media (max-width: 1050px) {
    #choosing-school {
        flex-direction: column-reverse;
    }

    #choosing-school a {
        width: 100%;
    }
    #choosing-school button {
        width: 100%;
        margin-bottom: 20px;
    }

    #institute-button {
        border-radius: 15px 15px 30px 30px;
    }
    #college-button {
        border-radius: 30px 30px 15px 15px;
    }
}

@media (max-width: 700px) {
    #portal-greating {
        font-size: 70px;
    }
    #greating p {
        font-size: 23px;
    }
}

@media (max-width:535px) {
    #choosing-school button {
        font-size: 15px !important;
    }
    
}

@media (max-width: 450px) {
    #choosing-school button {
        font-size: 12px !important;
    }

    #portal-greating {
        font-size: 50px;
    }

    #greating p {
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    #choosing-school {
        width: 90%;
        margin: 50px auto 70px auto;
    }

    #portal-greating {
        font-size: 40px;
    }

    #greating p {
        font-size: 13px;
    }
}

/* last news */



/* Search section  */
@media (max-width:1300px) {
    #search-section nav {
        width: 90%;
        padding: 0 !important;
    }

    #p-map {
        margin: 10px 10px 50px auto;
    }
    

}

@media (max-width:820px ) {
    #search-section nav h1, 
    #search-section .p-text,
    #search-section-div {
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #search-section-input, #result-box  {
        width: 90% !important;
    }
}

@media (max-width: 750px) {
    .subtitle {
        font-size: 35px !important;
    }

    .p-text {
        font-size: 20px !important;
        white-space: normal;
        word-break: break-word !important;
        width: 90% !important;
    }

    #p-map {
        margin-right: 10px !important;
        margin-left: auto;
    }

    #search-section nav {
        width: fit-content;
    }
}

@media (max-width:480px){
    #search-section nav .subtitle {
        font-size: 28px !important;
    }

    #search-section nav .p-text {
        font-size: 13px !important;
    }

    #search-section-input {
        font-size: 18px !important;
        height: 50px !important;
    }

    #search-section-button {
        height: 50px !important;
    }
}


/* Feedback responsive */

@media (max-width: 1000px) {
    #web-features {
        margin: 20px auto 70px auto;
        width: 88%;
    }

    #highlights div h2 {
        font-size: 20px;
    }
}

@media (max-width: 900px) {

    #web-feedback nav .subtitle {
        font-size: 10px !important;
    }

    #web-feedback nav .p-text {
        font-size: 15px !important;
    }

    #web-features .subtitle {
        font-size: 35px ;
    }

    #highlights {
        flex-direction: column-reverse;
        margin: 40px auto;
        width: 90%;
        align-items: center;
    }

    #highlights div {
        width: 80%;
        border-radius: 20px;
    }

    
}

@media (max-width: 750px){
    #web-features .subtitle {
        font-size: 29px !important;

    }

    #web-features ul li {
        font-size: 17px;
        
    }

    #feedback-text2, #feedback-text{
        font-size: 17px;
    }

    #highlights div h2 {
        font-size: 15px;
        padding: 5px 20px;
    }
}

@media (max-width: 500px) {
    #feedback-text {
        font-size: 15px !important;
    }

    #feedback-h1 {
        font-size: 35px !important;

    }

    #web-features ul li {
        font-size: 15px;

    }
}

/* Contact with us section responsive */
@media (max-width: 1000px) {

    #out-information {
        width: 80%;
    }

    .info p {
        margin-top: 10px;
    }
    
    
    .info-post button {
        font-size: 15px;
    }


}

@media (max-width: 950px) {
    .info h3 {
        font-size: 20px;
    }
}

@media (max-width: 780px){
    .info-post img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 550px){
    #contactUs-h11, #contactUs-h12 {
        font-size: 17px !important;
    }

    .info p {
        font-size: 12px !important;
    }

    .info-post, #email-info-div {
        justify-content: space-evenly;
        width: 90%;
    }

    .info-post button {
        font-size: 10px;
    }

    .info-post button img {
        width: 15px !important;
        height: 15px !important;
    }

    .info-post img {
        width: 85px;
        height: 85px;
    }
}

@media (max-width: 450px){
    #email-info-div {
        font-size: 12px;
    }

    #contactUs-h11, #contactUs-h12 {
        font-size: 14px !important;
    }

    .info p {
        font-size: 10px !important;
    }
}

@media (max-width: 400px) {
    .personal-img {
        width: 60px !important;
        height: 60px !important;
    }

    #email-info-div {
        font-size: 9px;
    }

    .info button {
        font-size: 8px;
    }

    .info button img {
        width: 12px !important;
        height: 12px !important;
        margin-left: 5px !important ;
    }
}

@media (max-width: 360px) {
    #contactUs-h11, #contactUs-h12 {
        font-size: 14px !important;
    }

    .info p {
        font-size: 10px !important;
    }
}