/* Start Main Rules */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #202020;
    --sec: #3b84bc;
    --thrid: #e8f7e6;
    --fourth: #222222;
    --temp: #8f96a3;
}

html {
    scroll-behavior: smooth;
}

body {
    /*English*/
    /* font-family: 'JaliLatin', sans-serif; */
    /*Arabic*/
    font-family: "JaliArabic", sans-serif;
    background-color: var(--bg);
    color: #222222;
}

/* width */
::-webkit-scrollbar {
    width: 17px;
    cursor: pointer;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--sec);
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.shor-btn {
    width: 200px;
    background-color: var(--sec);
    color: #222222;
    font-weight: bold;
    font-size: 35px;
    border: none;
    border-right: 7px solid #222222;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

.shor-btn:hover {
    background-color: #222222;
    color: var(--sec);
    border-color: var(--sec);
}

.shor-tape {
    padding: 2px 15px;
    width: 90%;
    background-color: var(--sec);
    color: #222222;
    font-weight: bold;
    font-size: 35px;
    border: none;
    border-right: 15px solid #222222;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

.back-btn {
    background: none;
    border: 1px solid #222222;
    color: #222;
    padding: 5px;
    width: 115px;
    font-weight: 500;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    transition: 0.5s;
}

.back-btn:hover {
    background-color: var(--sec);
    color: white;
    border-color: transparent;
}

.next-btn {
    background-color: var(--sec);
    border: 1px solid transparent;
    color: white;
    padding: 5px;
    width: 115px;
    font-weight: 500;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    transition: 0.5s;
}

.next-btn:hover {
    background: none;
    color: #222;
    border: 1px solid #222222;
}

/* End Main Rules */

/* Start Overwrites */

.btn-success {
    color: white;
    background-color: var(--sec);
    border: none;
}

.btn-success:hover {
    color: white;
    background-color: #ab4713 !important;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--primary);
    height: 5px;
}

/* End Overwrites */

/* Start Header */

nav {
    position: relative;
    box-shadow: 0 4px 7px -5px #21679c;
    margin-bottom: 6px;
}

.logo {
    width: 125px;
    filter: drop-shadow(2px 1px 5px #3b84bc);
    -webkit-filter: drop-shadow(2px 1px 5px #3b84bc);
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    position: relative;
}

.logo:hover {
    filter: drop-shadow(2px 1px 5px #14222d);
    -webkit-filter: drop-shadow(2px 1px 5px #14222d);
}

.nav-logo {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    gap: 15px;
}

.nav-logo::after {
    content: "";
    height: 40%;
    width: 5px;
    background: #21679c;
    position: absolute;
    right: 125px;
    top: 38px;
}

.nav-logo h4 {
    margin: 0;
}

nav .nav-links li a {
    font-weight: bold;
    font-size: 18px;
    transition: 0.5s;
}

nav .nav-links li a:hover {
    margin-right: 15px;
}

ul.navbar-nav {
    gap: 20px;
}

nav .join-us {
    padding: 15px 25px;
    font-size: 18px;
}

a.contact-us {
    margin-left: 30px;
}

.navbar {
    padding: 0;
}

.lang-flag {
    width: 40px;
    height: 30px;
}

/* End Header */

/* Start Main */

main {
    background-color: white;
    min-height: 80vh;
    color: white;
    padding-top: 5px;
    padding-bottom: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

main .container {
    /* position: relative; */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    gap: 25px;
}

main .container .heading-logo img {
    width: 400px;
}

main .container h1 {
    color: #222222;
    font-weight: bold;
}

main .container .shor-tape {
    width: 600px;
    position: absolute;
    top: 45px;
    right: 0;
}

main .fields {
    margin-top: 70px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-items: center;
    gap: 30px;
}

main .fields .field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.5s;
}

main .fields .field:hover {
    filter: drop-shadow(0 2px 2px var(--sec));
}

main .fields .field:hover img {
    filter: brightness(0.5);
}

main .fields .field .image {
    width: 150px;
    height: 150px;
}

main .fields .field img {
    width: 100%;
    transition: 0.5s;
}

main .fields .field p {
    color: #222222;
    font-weight: bold;
    font-size: 18px;
}

main .experts {
    margin-top: 70px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
    /* gap: 30px; */
}

.expert {
    cursor: pointer;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    transition: 0.5s;
}

.expert:hover {
    box-shadow: 0 0 9px -1px var(--sec);
}

.expert:hover .image img {
    filter: drop-shadow(2px 4px 6px var(--sec));
}

.expert:hover .image::before {
    transform-origin: bottom;
    transform: scale(1.1);
}

.expert .info {
    display: flex;
    width: 300px;
    align-items: center;
    justify-content: end;
    color: white;
    background-color: #c0cdc4;
}

.expert .info .name {
    width: 75%;
    display: flex;
    align-items: end;
    flex-direction: column;
    padding-top: 10px;
    padding-right: 15px;
    background-color: #222;
}

.expert .info .name h1 {
    font-size: 23px;
    color: white;
}

.expert .info .name p {
    width: auto;
}

.expert .image {
    width: 100%;
    /* background-color: red; */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

.expert .image::before {
    content: "";
    /* clip-path: circle(50.0% at 11% 100%); */
    clip-path: circle(50% at 50% 50%);
    background: var(--sec);
    position: absolute;
    left: 50px;
    bottom: -10px;
    width: 200px;
    height: 200px;
    z-index: 1;
    transition: 0.5s;
}

.expert .image img {
    width: 360px;
    position: relative;
    z-index: 2;
    max-height: 360px;
}

.expert .info .icon img {
    width: 70px;
}

.expert .info .icon {
    background-color: #c0cdc4;
    padding: 0 10px;
    width: 30%;
}

.expert .bio {
    color: #222;
    background-color: #c0cdc4;
    width: 100%;
}

.expert .bio p {
    text-align: right;
    padding-right: 10px;
    font-size: 15px;
    padding-top: 10px;
    color: white;
}

main .container .selections {
    position: absolute;
    top: 45px;
    right: 80px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 15px;
}

main .container .selections .field-icon,
main .container .selection .field-icon {
    width: 60px;
}

main .container .selections .field-icon img,
main .container .selection .field-icon img {
    width: 100%;
}

main .container .selections .field,
main .container .selections .expert,
main .container .selections .slot {
    border: 2px solid #222;
    padding: 7px 12px;
    color: #222;
}

main .container .selection {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 15px;
    width: 100%;
    position: absolute;
    top: 225px;
    right: 25px;
}

main .container .selection .field {
    color: #222;
    font-weight: bold;
}

main .container .slots {
    margin-top: 250px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    justify-items: center;
    gap: 15px;
}

main .container .slots .slot {
    transition: 0.5s;
    border: 2px solid #222;
    padding: 7px 12px;
    color: #222;
    cursor: pointer;
}

main .container .slots .slot:hover {
    background-color: var(--sec);
    border: 1px solid transparent;
    color: white;
}

main .container .slots .slot.booked {
    color: var(--sec);
    border-color: var(--sec);
    cursor: not-allowed;
}

main .container .slots .slot.booked:hover {
    background-color: transparent;
    color: var(--sec);
    border-color: var(--sec);
}

main .container .slots .slot.checked {
    background-color: var(--sec);
    border: 1px solid transparent;
    color: white;
}

main .container .slots .slot.checked:hover {
    background-color: var(--sec);
    border: 1px solid transparent;
    color: white;
}

main .slots-container .msg {
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;
    align-items: center;
    color: #222;
    width: 100%;
}

.quarter {
    width: 25px;
    background: #163dd1;
    filter: invert(1);
    border-radius: 50%;
    transform: rotate(90deg);
}

main .slots-container .details {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: end;
    color: #222;
    width: 100%;
}

main .slots-container .details li {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 15px;
}

main .slots-container .details .box {
    width: 15px;
    height: 15px;
    border: 1px solid #222;
}

main .slots-container .details .box.booked {
    border: 1px solid var(--sec);
}

main .slots-container .details .box.checked {
    border: 1px solid var(--sec);
    background-color: var(--sec);
}

main .form-container form {
    margin-top: 230px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    align-items: center;
}

main .form-container form input {
    text-align: right;
    direction: rtl;
    width: 400px;
    background-color: transparent;
    padding: 5px 15px;
    border: none;
    border: 1px solid #222;
    border-right: 10px solid var(--sec);
}

.confirmation-container .expert {
    margin-top: 50px;
}

.confirmation-container .final-selections {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-items: center;
    gap: 15px;
}

.confirmation-container .final-selections div {
    border: 2px solid #222;
    padding: 5px 8px;
    color: #222;
    width: 150px;
    text-align: center;
}

.confirmation-container .msg {
    width: 100%;
    color: #222;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confirmation-container .msg i {
    font-size: 35px;
    color: var(--sec);
}

.confirmation-container .msg p {
    margin: 0;
    font-weight: 500;
}

p.take-photo {
    text-align: center;
    color: #878787;
}

ul.rules {
    list-style: square;
    direction: rtl;
    color: #222;
}

main .areas {
    margin-top: 70px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    place-items: center;
    gap: 30px;
}

main .area {
    padding: 10px 15px;
    min-width: 200px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #222;
    cursor: pointer;
    transition: 0.5s;
}

main .area h1 {
    transition: 0.5s;
}

.main-area {
    margin-top: 70px;
}

main .area:hover {
    border-color: transparent;
    background: var(--sec);
}

main .area:hover h1 {
    color: white;
}

main .area .qr-code {
    width: 300px;
    height: 300px;
    cursor: pointer;
}

main .area:hover {
    box-shadow: 0 0 9px -1px var(--sec);
}

main .main-area .area {
    box-shadow: inset 0 0 6px 1px #222222, 0px 0px 2px 0px #f36b23;
}

.selections .expert {
    width: auto;
}

main .thanksContainer .headings {
    margin-top: 80px;
    text-align: center;
}

main .thanksContainer .headings h2 {
    color: #222;
}

main .thanksContainer .main-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    direction: rtl;
    gap: 15px;
}

main .thanksContainer .main-card ul li {
    color: #222;
    font-size: 23px;
}

main .thanksContainer .main-card ul li i {
    margin-left: 10px;
    color: var(--sec);
}

/* End Main */

.whatsapp-icon {
    position: fixed;
    bottom: 10px;
    right: 30px;
    z-index: 2222;
    background: var(--sec);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: normal;
    gap: 10px;
    transition: 0.5s;
    cursor: pointer;
}

.whatsapp-icon i {
    font-size: 27px;
    transition: 0.5s;
}

.whatsapp-icon span {
    font-size: 20px;
}

.whatsapp-icon:hover {
    padding-right: 50px;
    padding-left: 50px;
    background-color: #ab4713;
}

nav .contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

nav .contact-info div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

nav .contact-info div span {
    font-weight: bold;
}

nav .contact-info div i {
    font-size: 25px;
    color: var(--sec);
}

/* Start Departments */

.sec_title {
    padding: 2px 15px;
    width: 100%;
    background-color: var(--sec);
    color: #222222;
    font-weight: bold;
    font-size: 35px;
    border: none;
    border-right: 15px solid #222222;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

@media (max-width: 768px) {
    .departments .sec_title {
        font-size: 20px;
        font-weight: 500;
    }
}

.departments .card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 18px;
    background: #fff;
    transition: 0.4s ease;
    height: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.departments .card::before,
.departments .card::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--sec);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0.9;
    border-radius: 6px;
    z-index: 0;
}

.departments .card::after {
    top: -25px;
    right: -25px;
}

.departments .card::before {
    bottom: -25px;
    left: -25px;
}

.departments .card:hover::after {
    top: -10px;
    right: -10px;
    transform: rotate(135deg) scale(1.2);
}

.departments .card:hover::before {
    bottom: -10px;
    left: -10px;
    transform: rotate(135deg) scale(1.2);
}

.departments .card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.departments .card .card-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.departments .card-body i {
    animation: floatIcon 3s ease-in-out infinite;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--sec);
    transition: transform 0.4s ease;
}

.departments .card-body h5 {
    color: #222;
    font-weight: 700;
    margin: 0;
}

.departments .card:hover .card-body i {
    transform: scale(1.2);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* End Departments */

/* Start Our Goals */
.our-goals {
    margin-top: 70px;
    margin-bottom: 70px;
    position: relative;
}

.our-goals .card {
    position: relative;
    overflow: hidden;
    height: 250px;
    transition: all 0.5s ease;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.our-goals .card::before,
.our-goals .card::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sec);
    opacity: 0;
    z-index: 0;
    transition: all 0.6s ease;
}

.our-goals .card::before {
    top: -60px;
}

.our-goals .card::after {
    bottom: -60px;
    opacity: 0.5;
}

.our-goals .card:hover::before {
    top: 15px;
    opacity: 0.7;
    animation: floatCircle 2s ease-in-out infinite;
}

.our-goals .card:hover::after {
    bottom: 15px;
    opacity: 0.5;
    animation: floatCircle 2s ease-in-out infinite reverse;
}

@keyframes floatCircle {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

.our-goals .card .card-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s ease;
}

.our-goals .card i {
    animation: iconFloat 3s ease-in-out infinite;
    color: var(--sec);
    margin-bottom: 10px;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.our-goals .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* End Our Goals */

/* Start Vision & Mission */
.institute-vision {
    background: #f8f9fa;
    overflow: hidden;
}

.section-title {
    font-weight: 800;
    color: var(--sec);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--sec);
    border-radius: 5px;
}

.vision-box {
    background: #fff;
    border-radius: 20px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    animation: cardFadeIn 0.8s ease forwards;
    cursor: pointer;
}

.vision-box:nth-child(1) {
    animation-delay: 0.2s;
}

.vision-box:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.vision-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.vision-box::before {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
            var(--sec) 0%,
            transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
}

.vision-box:hover::before {
    opacity: 0.1;
    bottom: -10%;
    left: -10%;
}

.vision-box .icon {
    color: var(--sec);
    transition: transform 0.4s ease;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.vision-box:hover .icon {
    transform: scale(1.2);
}

.vision-box p {
    color: #555;
    line-height: 1.9;
    font-size: 1.05rem;
}

/* End Vision & Mission */

/* Start Under Patronage */
.under-patronage {
    background: linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
    overflow: hidden;
}

.section-title {
    font-weight: 800;
    color: var(--sec);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--sec);
    border-radius: 5px;
}

.patronage-box {
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.patronage-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
            var(--sec) 0%,
            transparent 70%);
    opacity: 0;
    transition: all 0.7s ease;
}

.patronage-box:hover::before {
    opacity: 0.1;
    top: -10%;
    left: -10%;
}

.patronage-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.patron-item {
    margin-bottom: 20px;
}

.patron-item:last-child {
    margin-bottom: 0;
}

.patron-item h5 {
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.patron-item p {
    margin: 0;
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .patronage-box {
        padding: 30px 20px !important;
    }

    .patron-item h5 {
        font-size: 1rem;
    }
}

/* End Under Patronage */

.download-btn {
    background: linear-gradient(135deg, #3b84bc, #6faedd);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #2e6e9b, #5699cc);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 132, 188, 0.4);
    color: #fff;
}