@media (max-width: 720px) {
    .header-mobile {
        position: fixed;
        top: 0;
        width: 100vw;
        height: 10vh;
        background-color: #143c5a0c;
        backdrop-filter: blur(10px);
        z-index: 20;
        text-align: right;
    }

    .main-image {
        width: 50vw;
        object-fit: scale-down;
        margin: unset;
    }

    .main-header {
        width: 90%;
    }
    .appointment .container{
    width: 90%;
    margin: 0 auto;
    }  

    .signup-grid {
        display: block;
        font-size: 14px;
        margin: 0;
        height: fit-content;
        overflow: visible;
        margin-top: 0vh;
    }

    .signup-grid li {
        margin-bottom: 16px;

    }

    .signup-h1 {
        font-size: large;
    }

    .ibtikar-choices {
        max-width: 100%;
        min-width: 100%;
        display: grid;
        grid-template-columns: 40% 40%;
        grid-template-rows: 40% 40% 40%;
        gap: 10%;
        row-gap: 20%;

        text-align: center;
        padding-bottom: 30vh;
        padding-inline: 10%;
        height: fit-content;
        overflow: auto;
    }

    .ibtikar-choices a {
        all: unset;
        background-color: var(--primary-color);
        display: grid;
        grid-template-rows: fit-content(100%) fit-content(100%);
        gap: 10%;
        align-items: center;
        text-align: center;
        justify-content: center;
        color: white;
        border-radius: 16px;
        font-size: 12px;
        width: 100%;
        min-height: 100%;
        padding-block: 10px;
    }

    .conditions li {
        font-size: small;
        text-align: justify;
        width: 70vw;
    }

    .header-logo {
        margin: 0;
        position: fixed;
        right: 0;
    }

    .header-logo-image {
        position: fixed;
        height: 100%;
        width: auto;
        float: right;
        margin: 0;
        top: 0;
        right: 16px;
        object-fit: scale-down;
    }

    .main-logo {
        top: 40vh;
    }

    .sidebar-button {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: fit-content;
        padding-inline: 10px;
        float: right;
        height: 10vh;
        font-size: 7vh;
        right: 0px;
        color: white;
        text-align: center;
        cursor: pointer;
        z-index: 7;
        animation: sidebarButton 0.5s 0.5s forwards;
    }
    .sidebar-button svg {
        width: 50px;
        height: 50px;
    }
    .sidebar-button svg path {
        fill: white;
    }

    @keyframes sidebarButton {
        0% {
            left: -10px;
        }

        100% {
            left: 16px;
        }
    }



    .exist {
        font-weight: bolder;
    }

    .main-logo-container {
        top: 20vh;
    }

    .cta-button {
        display: grid;
        grid-template-columns: 20% 80%;
        min-height: 40px;
        min-width: 200px;
        width: auto;
        text-align: right;
        margin-top: 20%;
    }

    .contact-us-icon {
        all: unset;
        margin-right: auto;
        padding: 5px;
        font-size: 80%;
    }

    .contact-us-text {

        padding: 10px;
        font-size: 50%;
    }


    .sidebar {
        all: unset;
        height: 100vh;
        /* Changed from 100vw to 100vh for full viewport height */
        width: 0vw;
        min-width: none;
        position: fixed;
        z-index: 20;
        top: 0;
        right: 0;
        overflow: hidden;
        padding-top: 20px;
        transition: width 0.3s ease;
        direction: rtl;
        /* animation: sidebarEntry 1s linear; */
        display: flex;
        flex-direction: column;
        background-color: var(--primary-color);
        backdrop-filter: blur(10px);
        animation: sidebarEntry 0.5s linear;

    }

    .student-table th,
    .student-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #dddddd;
        white-space: nowrap;
        /* Prevents wrapping of content */

        min-width: 50vw;
        padding: 0.5rem;
        vertical-align: middle;
        /* Ensures the cell width fits the content */
        font-size: small;
        text-align: center;

    }
}

@keyframes sidebarEntry {
    0% {
        width: 60px;
        height: 0vh;
    }

    80% {
        height: 100vh;
        width: 60px;
    }

    100% {
        width: 0;

    }

}



.sidebar span {
    font-size: 12px;
    /* Smaller font size for the span on mobile */
    opacity: 1;
    /* Always visible on mobile for better UX */
    display: inline;
    color: white;
}

.sidebar i {
    font-size: 18px;
    /* Smaller icon size for mobile screens */
}

.sidebar-button:hover+.sidebar {
    width: 65%;

}

.sidebar:hover {
    width: 65%;
}

.values-title {
    margin-top: 40px;
}

.mission-description {
    margin-top: 40px;
}

.vision-column {
    width: 100%;
}

.main-page-main {
    display: unset;
    margin-top: 50vh;
    line-height: 48px;
    font-size: 20px;
    animation: showAbout 1s linear;
}

.about-container-image {
    display: block;
    width: 100vw;
}

.audience {
    display: flex;
    width: 50%;
    height: 20px;
    padding-top: 10px;
    text-align: right;
}

#about-content {
    max-width: 100%;
    min-width: 100%;
    padding-inline: 5%;
    text-align: justify;
    font-size: 18px;
    margin-top: -20px;
}

.hero-subtitle {
    max-width: 100%;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    font-weight: bolder;
}

.news-title {
    font-size: 40px;
}

.browse-all-btn {
    padding: 0 20px;
    text-decoration: underline;
    background-color: unset;
    color: #143c5a;
}

.news-content {
    max-width: 100%;
    padding: 0 20px;
}

.news-section {
    max-width: 100%;
}

.scroll-indicator {
    margin-top: 40px;
}

.cta-button {
    padding: 0 20px;
}


.logo-container {
    margin-top: 40px;
}

.nav-menu {
    flex-wrap: wrap;
}

.contact-btn {
    padding: 0 20px;
}

.nav-links {
    margin-top: 40px;
    flex-wrap: wrap;
}

.navigation {
    max-width: 100%;
    padding: 0 20px;
}

.header-wrapper {
    max-width: 100%;
}

.main-content {
    max-width: 100%;
}

.news-title-text {
    font-size: 40px;
}

.news-grid {
    max-width: 100%;
    margin-top: 40px;
}

.news-row {
    flex-direction: row;
    align-items: center;
    gap: 0px;
    margin-right: 0;
    margin: 0;
    overflow-x: scroll;
    min-width: 100vw;
}

.news-column {
    flex: 1;
    min-width: 100vw;
    max-width: 100vw;
    margin-inline-end: 0;
}

.news-card {
    max-width: 100%;
    padding: 0 20px;
}

.title-icon {

    width: 10px;
    margin-right: 5px;
}

.competitions-title-text {
    font-size: 40px;
    margin: 0;
    gap: 0px;
}

.competitions-title {
    font-size: 40px;
    white-space: initial;
}

.competitions-header {
    max-width: 100vw;
    min-width: 100vw;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.competitions-content {
    max-width: 100%;
    padding: 0 20px;
}

.competitions-section {
    max-width: 100%;
}

.news-divider {
    max-width: 100%;
}

.news-card-title {
    max-width: 100%;
    margin-top: 40px;
}

.news-image {
    max-width: 100%;
}

.news-footer {
    max-width: 100%;
    flex-wrap: wrap;
}

.platforms-content {
    max-width: 100%;
}

.platforms-section {
    max-width: 100%;
    padding: 0 20px;
}

.competitions-grid {
    max-width: 100vw;
    margin-top: 40px;
}



.platforms-title {
    font-size: 40px;
}

.platforms-grid {
    max-width: 100%;
    margin: 40px;
}

.scroll {
    overflow-y: scroll;

}

.platforms-row {
    all: unset;
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin-right: 0;
    margin: 0;
    overflow-x: scroll;
    min-width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    direction: rtl;
    margin-left: 0;


}

.platform-card {
    margin-top: 40px;
}

.platform-column {
    flex: 1;
    min-width: 100vw;
    max-width: 100vw;
    margin-inline-end: 0;
    background-color: unset;
    padding: 16px;
}

.platform-description {
    padding: 16px;
}

.platform-title {

    margin-top: 40px;
    text-decoration: none;
}

.platforms-navigation {
    margin-top: 40px;
}

.sectors-section {
    max-width: 100%;
    padding: unset;
}

.sectors-content {
    max-width: 100%;
    padding-top: 10vh;
}

.sectors-header {
    flex-wrap: wrap;
    padding-left: 20px;
    font-size: 40px;
    line-height: 82px;
    white-space: initial;
}

.sectors-title {
    font-size: 30px;
    line-height: 82px;
    font-weight: bolder;
}

.sectors-grid {
    max-width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
}


.scroll-buttons {
    display: inherit;
    position: absolute;

    bottom: 5vh;
    width: 100%;
    text-align: center;
}

.scroll-button1 {
    background-color: #007bff;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    cursor: pointer;

    position: absolute;
    bottom: 0;
    right: 16px;

}

.scroll-button2 {
    background-color: #007bff;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    right: 64px;


}

.scroll-button:focus {
    outline: none;
}

.scroll-button:active {
    background-color: #0056b3;
}

.sectors-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
    width: 100vw;
    padding: 0;
    margin-top: -30px;

}

.sector-column {
    width: 100%;
    margin: 1%;
}

.sector-card {
    padding: 0 20px;
}

.sector-number {
    white-space: initial;
}

.sector-icon {
    font-size: 40px;
}

.about-section {
    max-width: 100%;
    padding: 0 20px;
}

.sector-arrow {
    margin-top: 40px;
}

.about-title {
    margin-right: 10px;
    font-size: 40px;
    line-height: 82px;
}



.about-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
}

.about-image-column {
    width: 100%;
    text-align: center;
}

.about-image {
    min-width: 100vw;
    margin-top: 28px;
    z-index: 3;
    float: left;
    display: none;
}

.about-text-column {
    width: 100%;
}

.about-description {
    max-width: 100%;
    margin-top: 22px;
}

.values-section {
    max-width: 100%;
    margin: 40px 5px 0 0;
}

.form-row {
    max-width: 100%;
    flex-wrap: wrap;
}

.vision-title {
    margin-top: 40px;
}

.vision-icon {
    margin-top: 40px;
}

.vision-card {
    margin-top: 40px;
    padding: 0 20px;
}

.mission-footer {
    margin-top: 40px;
}

.mission-title {
    margin-top: 40px;
}

.mission-icon {
    margin-top: 40px;
}

.mission-card {
    margin-top: 40px;
    padding: 0 20px;
}

.mission-column {
    width: 100%;
}

.values-footer {
    margin-left: 10px;
}

.values-content {
    margin-top: 40px;
    padding: 0 20px;

}

.values-icon {
    margin-top: 50px;

}

.values-card {
    margin-top: 0px;
    height: 80%;
}

.values-column {
    flex: 1;
    min-width: 100vw;
    max-width: 100vw;
    height: 70%;
    margin-top: 0;
}

.values-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
}

.values-header {
    white-space: initial;
    padding: 0 20px;

}

.vision-description {
    margin-top: 40px;
}

.values-list-container {
    font-size: 13px;
    width: 100%;
}

.vision-footer {
    margin-top: 40px;
}

.contact-section {
    max-width: 100%;
    padding: 0 20px;
}

.contact-content {
    flex-wrap: wrap;
}

.social-links {
    white-space: initial;
}

.social-icon {
    white-space: initial;
}

.contact-header {
    max-width: 100%;
    font-size: 40px;
}

.contact-title {
    font-size: 40px;
}

.contact-title-text {
    font-size: 40px;
}

.contact-subtitle {
    max-width: 100%;
    font-size: 18px;
    line-height: 20px;
    margin-top: 0px;
}

.contact-form {
    max-width: 100%;
    margin-top: 40px;
    padding: 0 20px;
}

.form-input {
    padding-left: 20px;
}

.form-textarea {
    max-width: 100%;
    padding-left: 20px;
    margin-top: 40px;
}

.submit-button {
    margin-top: 40px;
    white-space: initial;
    padding: 0 20px;
    width: 80%;
}

.footer {
    max-width: 100%;
    height: 50vh;
    max-height: 50vw;
}

.footer-address {
    max-width: 100%;
}

.footer-logo {
    margin: 0 10px;
}

.footer-info {
    max-width: 100%;
    padding: 10px;
    margin-top: 15px;
    display: none;
}

.footer-link {
    margin-left: 10px;
}

.footer-section {
    padding-left: 20px;
}

.footer-content {
    max-width: 100%;
    height: 40vh;
    flex-wrap: wrap;

}

.footer-email {
    max-width: 100%;
    margin-top: 16px;
    margin-bottom: 16px;
}

.footer-icons a {
    margin: 5px;
}

.copyright {
    padding-top: 15vh;
    text-align: center;
    max-width: 100%;
    height: 40vh;
    padding-inline: 20px;
    font-size: 18px;
}

.signup-container {
    margin: 0;
    margin-top: 10vh;
    padding: 0;
}

/* signin */
.signin-body {
    padding: 16px;
}

.main-logo-container {
    display: none;
}

label {

    padding-right: 0px;
}

.profile-content {
    display: grid;
    grid-template-columns: 100%;
    margin-top: 30px;
    overflow: scroll;
}

.profile-info,
.profile-recent-activities,
.profile-settings {
    width: 100%;
    direction: rtl;
    margin-top: 5vh;
    font-size: 14px;
}