/* ================================
   TABLET (576px+)
   ================================ */

@media (min-width: 577px) {
    html {
        font-size: 65%;
    }

    .h-90 {
        height: 90vh;
    }

    .header-bg {
        padding: 1rem 3.2rem !important;
    }

    .hero-section {
        padding-bottom: 0;
        background-image: none;
    }

    .hero-image {
        height: 100%;
        background-position: center;
        align-items: start;
    }

    .header-bar {
        height: unset !important;
    }

    .hero-h1 {
        font-size: 3.2rem;
        line-height: 4.8rem;
    }

    .hero-image {
        background-image: url(public/images/BG-Tablet.png);
        background-size: cover;
    }

    .hero-countainer {
        margin-top: 10% !important;
        margin-bottom: unset;
        /*        top: 12%;*/
    }

    .hero-p1 {
        font-size: 1.8rem;
        line-height: 3rem;
    }

    .stats-column {
        justify-items: center;
        padding: 2rem;
        gap: 3rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-item {
        min-width: 60%;
        justify-content: start;
    }

    .stats-img {
        padding: 2rem 0;
        width: 85%;
        justify-content: space-evenly;
        transform: translate(-9%, 50%);
    }

    .stats-icon {
        width: 7rem;
        height: 7rem;
        padding: 1.4rem;
    }

    .stats-label {
        font-size: 1.5rem;
    }

    .stats-number {
        font-size: 3rem;
    }

    .features-section {
        margin: 20vh 0 10vh 0;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .news-cards-wrapper {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 1rem;
    }

    .news-section {
        padding-right: 0;
        padding-left: 0;

    }


    .news-card {
        width: 48%;
    }

    .faq-view-all {
        font-size: 1.5rem;
    }

    .footer-brand-title {
        /*        text-align:left;*/
    }

    .footer-brand-section {
        text-align: left;
    }

    .footer-2nd-box {
        flex: 1;
        align-self: baseline;
    }

    .footer-right-column {
        flex: 1;
        flex-direction: row;
    }

    .footer-2nd-box {
        flex-direction: row-reverse !important;
    }

    .footer-logo-section {
        flex: 1;
    }

    .footer-links-section {
        flex: 1;
    }


    .footer-college-logo {
        max-width: 80% !important;
    }

    .footer-content {
        display: flex;
        flex-direction: row;
        gap: 3rem;
        margin-top: 0 !important;
        align-items: center;
        text-align: right;
        font-weight: 400;
    }

    .footer-brand-section {
        flex: 1;
    }

    .footer-info-section {
        flex: 1;
    }

    .footer-brand-subtitle {
        font-size: 1rem !important;
    }

    .footer-description {
        width: 100%;
        font-size: 1rem !important;
    }

    .footer-bottom-content {
        flex-direction: row-reverse;
        justify-content: stretch;
        gap: 19rem;
    }

    .footer-social {
        margin-left: 3rem;
        gap: 0.5rem;
    }

        .footer-social img {
            width: 2.3rem;
            height: 2rem;
        }

    .maintenance-modal .modal-dialog {
        max-width: 38rem;
    }

    .maintenance-modal__card {
        padding: 7rem 4rem 4rem;
    }

    .maintenance-modal__illustration {
        top: -8rem;
        left: 3.5rem;
        width: 16rem;
    }

    .maintenance-modal__title {
        font-size: 2.2rem;
    }

    .maintenance-modal__logo {
        width: 58%;
        transform: translate(-14%, -44%);
    }
}

/* ================================
   DESKTOP (768px+)
   ================================ */

@media (min-width: 769px) {
    html {
        font-size: 49%;
    }

    .header-bg {
        padding: 2rem 4rem !important;
    }

    .rira-logo {
        width: 5.4rem;
        height: 5.6rem;
    }

    .header-right-btn {
        display: inline-block;
        font-size: 1.6rem;
        padding: 1rem 1.5rem;
    }

    .header-language {
        width: 9.3rem;
        height: 3.8rem;
        text-align: center;
    }

    .header-language-fa {
        font-size: 1.6rem;
        text-decoration: none;
    }

    .header-language-en-fa {
        font-size: 1.6rem;
        text-decoration: none;
        /*        border-radius: 4rem 0 0 4rem;*/
        border-left: 0;
        /*        padding-right: rem;*/
        /*        border-right: 0.1rem solid #a3a5dc;*/
    }

    aside {
        display: none;
    }

    .header-language-en {
        font-size: 1.4rem;
        text-decoration: none;
    }


    .header-language-en-div {
        border-radius: 5rem 0px 0px 5rem;
    }


    .header-language-fa-div {
        border-radius: 0px 5rem 5rem 0px;
    }

    nav {
        display: block;
    }


    .hero-section {
        background-image: url('public/images/Hero.png');
        background-size: cover;
        background-repeat: no-repeat;
    }

        .hero-section .position-relative {
            height: 90vh;
            min-height: 50rem;
        }


    .hero-countainer {
        /*        position: absolute;
        top: 53%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        padding: 0;*/
        margin-top: unset!important;
    }

    .hero-h1 {
        margin-bottom: 2rem;
        font-size: 3rem;
        line-height: 4.4rem;
        margin: 0;
    }

    .hero-p1 {
        font-size: 1.7rem;
        padding: 0.6rem 2rem;
        line-height: 3.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-btn {
        font-size: 1.4rem;
        line-height: 3.2rem;
        padding: 0.2rem 1.5rem;
    }


    .hero-image {
        /*        background-image: url('public/images/Hero.png');*/
        background-image: unset;
        /*background-size: contain;*/ /* or cover if you prefer */
        object-fit: cover;
        align-items:center;
    }

    .stats-section {
        margin: 15rem 0;
    }

    .stats-img {
        margin: 0 auto;
        max-width: 82%;
        position: absolute;
        left: 0;
        padding: 4rem;
        transform: translate(0, 50%);
    }

    .stats-icon {
        width: 7rem;
        height: 7rem;
        padding: 2rem;
        font-size: 3.5rem !important;
    }

    .stats-number {
        font-size: 3rem;
        line-height: 3.5rem;
    }

    .stats-item {
        display: flex;
        min-width:unset;
    }

    .stats-text {
        display: flex;
    }

    .stats-column {
        display: contents;
    }

    .stats-label {
        font-size: 1.8rem;
        line-height: 2.5rem;
    }

    .features-section {
        margin: unset;
    }

    .features-container {
        width: 90%;
        max-width: 120rem;
        padding: 4rem;
        margin: 10% auto;
    }

    .features-grid {
        padding: 1rem;
        overflow: hidden;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    .en-card-features {
        padding: 3rem 3.5rem 0 1rem!important;
        line-height:1.3;
    }

    .card {
        padding: 5rem 3.5rem;
    }

    .icon-box {
        padding: 0.3rem;
    }

        .icon-box img {
            width: 78%;
            height: 72%;
        }

    .card-inside {
        text-align: center;
        padding: 0 1.5rem;
    }

        .card-inside h3 {
            font-size: 1.7rem;
            line-height: 2.2rem;
        }

    .card-p {
        font-size: 1.5rem;
        line-height: 1.5;
    }

    .news-container {
        width: 90%;
        max-width: 120rem;
        padding: 5rem 0;
    }

    .news-h {
        font-size: 2.75rem;
        margin-top: 0;
    }

    .news-p {
        font-size: 1.5rem;
        line-height: 2.375rem;
    }

    .news-cards-wrapper {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 2rem;
    }

    .news-card {
        flex: 0 0 34rem;
        min-height: 20rem;
        padding: 1.8rem 1.9rem;
        background-size: 35%;
    }

    .news-title {
        font-size: 1.8rem;
        max-width: 25rem;
    }

    .faq-container {
        width: 90%;
        max-width: 120rem;
    }

    .faq-h {
        font-size: 3.5rem;
        margin-top: 8rem;
    }

    .faq-subtitle {
        font-size: 1.8rem;
        margin-bottom: 5rem;
    }

    .faq-content {
        width: 95%;
    }

    summary {
        font-size: 1.5rem;
    }

    details div {
        max-width: 70%;
    }

        details div p {
            font-size: 1.5rem;
            line-height: 166%;
        }

    .footer {
        padding: 4rem 5rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        text-align: right;
        margin-top: 5rem;
    }

    .footer-divider {
        width: 50%;
    }

    .footer-vertical-divider {
        display: block;
        width: 0.0625rem;
        height: 25rem;
        background: rgba(255, 164, 0, 0.35);
    }

    .footer-vertical-divider {
        display: none;
    }

    .footer-bottom-divider {
        display: none;
    }

    .footer-brand-section {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-2nd-box {
        gap: 2rem;
        display: flex;
        flex-direction: row-reverse;
        margin-top: 0;
    }

    .footer-description {
        max-width: 80%;
        font-size: 1.6rem;
    }

    .footer-contact {
        font-size: 1.6rem;
    }

    .footer-email-label {
        font-size: 1.6rem;
    }

    .footer-bottom-content {
        flex-direction: row-reverse;
        justify-content: stretch;
    }

    .footer-copyright {
        font-size: 1.6rem;
        text-align: right;
    }

    .footer-social {
        gap: 2rem;
        margin-right: 13rem;
    }

    .footer-college-logo {
        width: 17rem;
        height: 17rem;
        filter: invert(1);
    }

    .footer-social img {
        width: 3.2rem;
        height: 3.2rem;
    }

    .ml-custom {
        margin-left: 6rem;
    }

    .maintenance-modal .modal-dialog {
        max-width: 42rem;
    }

    .maintenance-modal__card {
        padding: 8rem 4.4rem 4.8rem;
    }

    .maintenance-modal__illustration {
        top: -9rem;
        left: 4.2rem;
        width: 18rem;
    }

    .maintenance-modal__text {
        font-size: 1.6rem;
        line-height: 2.8rem;
    }
}

/* ================================
   LARGE DESKTOP (1200px+)
   ================================ */

@media (min-width: 1200px) {
    html {
        font-size: 60%;
    }

    .header-bg {
        padding: 1rem 7rem !important;
    }

    .stats-img {
        width: 73%;
        max-width: 100%;
        /*        transform: translate(10px, 104px);*/
    }

    .stats-icon {
        width: 6rem;
        height: 6rem;
        padding: 1rem;
        font-size: 3.5rem !important;
    }

    .stats-label {
        font-size: 1.4rem;
        line-height: 2.8rem;
    }

    .stats-number {
        font-size: 2.5rem;
        line-height: 4rem;
    }

    .new-cards-container {
        width: 85%;
        margin: 0 auto;
    }

    .features-container {
        margin: 5% auto;
        width: 140rem;
        max-width: 95%;
    }

    .features-grid {
        display: grid;
        margin: 0 auto;
        grid-template-columns: repeat(3, 1fr);
        gap: 3.4rem;
        width: 100%;
    }

    .card {
        height:100%;
        padding: 5rem 4.5rem;
        border-radius: 2.5rem;
    }

    .en-card-features {
        padding: 3rem 3.5rem 3rem 1rem !important;
        line-height: 1.3;
    }

    .card-p {
        font-weight: 400 !important;
        font-size: 1.5rem;
        line-height: 3rem;
    }

    .hero-countainer {
/*        transform: translate(-50%, -23%);*/

    }

    .news-container {
        width: 140rem;
        max-width: 95%;
    }

    .news-cards-wrapper {
        justify-content: center;
        gap: 3rem;
    }

    .news-card {
        width: 40rem;
    }

    .faq-container {
        width: 140rem;
        max-width: 95%;
        margin-bottom: 5rem;
    }

    .footer-info-section {
        padding-top: 1rem;
    }


    .footer {
        padding: 8rem 7.5rem 4rem 7.5rem;
    }

    .footer-bottom-content {
        padding: 0 5rem;
    }

    .icon-box {
        padding: 1rem;
    }

        .icon-box img {
            width: 100%;
            height: 81%;
        }

    .maintenance-modal .modal-dialog {
        max-width: 46rem;
    }

    .maintenance-modal__card {
        padding: 9rem 5rem 5.4rem;
    }

    .maintenance-modal__illustration {
        top: -10rem;
        left: 4.8rem;
        width: 20rem;
    }

    #announcementDialog {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        #announcementDialog.hidden {
            display: none;
        }

        #announcementDialog .box {
            /*                background: white;*/
            padding: 20px;
            border-radius: 8px;
        }
}

@media (min-width: 1441px) {
    html {
        font-size: 66%;
    }

    /*    .stats-img {
        transform: translate(0, 50%);
    }

    .hero-image {
        background-size: cover;
    }

    .features-container {
        margin-top: 34rem;
    }*/
    .en-card-features {
        padding: 3rem 3.5rem 5rem 1rem !important;
        line-height: 1.3;
    }
}
