/* phone */
@media screen and (max-width: 542px) {
    .navbar {
        display: flex;
        align-items: center;
        position: fixed;
        height: 70px;
        background: white;
    }

    .navbar.scrolled {
        height: 70px;
    }

    .navbar.scrolled a {
        color: white;
    }

    .navbar ul {
        position: absolute;
        overflow-y: hidden;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 3;
        height: fit-content;
        display: none;
        text-align: left;
        background-color: var(--primary-color);
    }

    .navbar-logo h3 {
        font-size: 4vw;
        color: var(--primary-color);
    }

    .navbar-logo {
        position: absolute;
        right: 5%;
    }

    .navbar ul.sub-menus {
        width: 100%;
        position: static;
    }

    .navbar ul.sub-menus a {
        padding-left: 30px;
    }

    .navbar li {
        display: block;
        float: none;
        width: auto;
    }

    .navbar input,
    .navbar label {
        position: absolute;
        top: 10px;
        left: 0;
        display: block;
    }

    .navbar input {
        z-index: 10000
    }

    .navbar input:checked+label {
        color: #000000
    }

    .navbar input:checked+label:before {
        content: "\00d7"
    }

    .navbar input:checked~ul {
        display: block
    }

    .navbar a {
        line-height: 60px;
        font-size: 18px;
    }

    /* hero section */
    .home {
        min-height: fit-content;
    }
    .home-content {
        margin: auto;
        text-align: center;
        top: calc(20% + 1vw);
    }

    .home-content h1 {
        font-size: 3em;
        padding-inline: 1rem;
        margin-bottom: 1rem;
    }

    .home-content h2 {
        margin-inline: 30px;
        font-size: 1.5em;
        margin-bottom: 1rem;
    }

    .home-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;

    }

    .home .cta {
        width: 100%;
    }


    /* founder section */
    .founder-message {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
        max-width: 100%;
        font-size: 80%;
    }

    .founder-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 1rem 0rem;
    }

    .founder-img-name {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .founder-img-name h4 {
        font-size: calc(20px + 1 vw);
    }

    /* units section */
    .units-tittle h1 {
        margin-inline: 0%;
        font-size: 2em;
    }

    .card {
        width: 260px;
        height: 350px;
    }

    /* build future section */
    .build-future {
        min-height: 80vh;
    }

    .build-content {
        max-width: 80%;
        text-align: center;
        color: var(--text-color1);
        z-index: 2;
        margin-bottom: 1rem;
        font-size: 80%;
    }

    .build-future img {
        width: 80%;
        border-radius: 10px;
    }

    /* deploy section */
    .deploy .image2,
    .image3 {
        display: none;
    }

    .deploy-tittle h1 {
        margin-inline: 10%;
        text-align: center;
        font-size: 3em;
    }

    /* licenses */
    .licences-tittle {
        font-size: 2em;
        margin-block: 2rem;
    }

    /* social media */
    .smRow {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-left: 0px;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .sm-bg {
        display: none;
    }

    .sm-bg2 {
        display: none;
    }

    .socialmedia h1 {
        margin-top: 2rem;
        font-size: 2em;
    }

    /* floating menu */
    .circular-menu .floating-btn {
        width: 3.5em;
        height: 3.5em;
        transform: scale(.8);
    }

    /* footer */
    .footer {
        padding: 0 .5rem;
        font-size: 60%;
    }

    .contact-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* outline: 1px solid red; */
        padding-inline: 10px;
        width: 100%;
    }

    /* about page */
    .about-home {
        display: flex;
        justify-content: center;
        min-height: 100vh;
        background-size: fill;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        z-index: 1;
    }

    .about-content h1 {
        font-size: 3em;
    }

    /* about overview */
    .perwita-tittle h1 {
        margin-bottom: 1rem;
        font-size: 1.4em;
    }

    /* our history */
    .our-history {
        padding: 1rem;
    }

    .OH-container img {
        max-width: 100%;
        height: 200px;
    }

    .OH-card {
        padding: 2rem 1rem;
        width: 100%;
        height: fit-content;
    }

    /* milestone */
    .milestone {
        padding: 1rem;
    }

    .ms-tittle {
        margin-top: 2rem;
        font-size: 80%;
    }

    .ms-card {
        width: 100%;
    }

    .ms-card p {
        margin-inline: 3rem;
        font-size: 12px;
    }

    .ms-line {
        rotate: 90deg;
        margin-block: 2rem;
        width: 100%;
    }

    /* our leadership */
    .leader h1 {
        margin-block: 1rem;
        font-size: 2em;
        text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.422);
        color: white;
    }

    /* vision mission value */
    .vision {
        width: 100%;
    }

    .vision .value-img {
        width: 300px;
        height: auto;
        border-radius: 20px;
        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.203);
        margin-bottom: 2rem;
    }

    /* our offices */
    .office-loc h1 {
        margin-top: 1rem;
        font-size: 2em;
    }

    .office h1 {
        font-size: 1.3rem;
    }

    .office {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 300px;
        height: fit-content;
        padding: 10px 30px;
        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.295);
        border-radius: 20px;
        background-color: white;
        color: var(--text-color1);
        position: relative;
    }

    .office-loc p {
        text-align: center;
    }

    .office img {
        display: none;
    }

    /* seabased */
    .seabased-content {
        font-size: 60%;
    }

    .sb-cta {
        max-width: 200px;
        margin-top: 1rem;
    }

    .sb-cta a {
        text-align: center;
        width: 200px;
        font-size: 1em;
        padding: .5rem 1rem;

    }

    /* Seabased overview */
    .sb-overview {
        justify-content: center;
        gap: 2rem;
    }

    .sb-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 80%;
        width: 100%;
        margin-right: 0rem;
        margin-inline: 2%;
        margin-bottom: 1rem;
    }

    .sb-content h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-transform: uppercase;
        font-size: 1.5rem;
        padding-bottom: 5px;
        color: var(--primary-color);
        margin-bottom: 1rem;
        margin-right: 0rem;
        text-align: center;
    }

    .sb-content p {
        text-align: center;
        font-size: 1em;
    }

    /* seabased services */
    .sb-services h1 {
        text-align: center;
        font-size: 2em;
    }

    /* Seabased department */
    .sb-department h1 {
        padding: 1rem;
        font-size: 2em;
        margin-top: 1rem;
    }

    .sb-department h1 span {
        font-size: 1em;
    }

    .department {
        display: flex;
        flex-direction: column;
        /* text-align: left; */
        background-color: white;
        overflow: hidden;
        background-size: cover;
        width: 250px;
        height: 320px;
        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.489);
        border-radius: 10px;
        position: relative;
    }

    /* seabased career */
    .sb-river {
        border-radius: 0px;
        flex-direction: column;
    }

    .sb-career h1 {
        margin-top: 2rem;
        text-align: center;
        font-size: 2em;
    }

    .river-content {
        order: 2;
        width: 100%;
    }

    .sb-river-img {
        order: 1;
        flex: 1;
        width: 100%;
        min-height: 300px;
    }

    .sb-career-cta {
        display: flex;
        flex-wrap: wrap;
        gap: 0rem;
    }

    .sb-career-cta a {
        width: 300px;
    }

    .river-content a {
        margin-top: 1rem;
    }

    /* sb deployed */
    .sb-deployed {
        flex-wrap: wrap;
    }

    .sb-deployed h1 {
        font-size: 1em;
    }

    .sb-deployed img {
        object-fit: cover;
        width: 100%;
        border-radius: 20px;
    }

    /* post social media */
    .sm-tittle {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0rem;
        text-align: center;
    }

    .post-update {
        padding: 1rem;
    }

    /* landbased */
    .lb-cta a {
        font-size: 12px;
        border-radius: 5px;
        width: 200px;
        text-align: center;
    }

    .landbased-content h1 {
        font-size: 3em;
    }

    .landbased-content p {
        font-size: 1em;
    }

    .lb-services h1 {
        font-size: 2em;
    }

    .lb-deployed h1 {
        text-align: center;
        font-size: 1.5em;
    }

    .sb-clients ul {
        line-height: 1.6;
        margin-inline: 20px;
    }

    /* training center */
    .tc-cta a {
        font-size: 10px;
        border-radius: 5px;
        width: 250px;
        text-align: center;
    }

    .tc-cta a {
        padding: 10px;
        border-radius: 10px;
    }

    /* partner page */
    .why-perwita {
        width: 100%;
        padding: 28px;
    }

    .why-perwita-img {
        display: flex;
        justify-content: center;
        padding: 10px;
        width: 100%;
    }

    .why-perwita-img img {
        width: 300px;
        border-radius: 20px;
    }

    .partner-page__pdf-section img {
        width: 270px;
    }

    .sbPartner {
        width: 100%;
    }

    .lbPartner {
        width: 100%;
    }

    /* circular menu */
    .circular-menu {
        position: fixed;
        bottom: 10px;
        right: 10px;
        z-index: 99;
    }

    /* galery */
    .galery {
        padding: 10px;
    }

    .galery-tumbnail img {
        padding: 5px;
        width: 125px;
        height: 125px;
    }

    .galery-modalImg {
        display: block;
        margin-inline: auto;
        max-width: 290px;
    }

    /* sb modal */
    .sb-modal-content {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 20px;
        background-color: #fefefe;
        margin: 20% auto;
        /* 15% from the top and centered */
        padding: 2rem;
        border: 1px solid #888;
        width: 95%;
        /* Could be more or less, depending on screen size */
    }

    /* ourhistory */
    .history-content {
        padding: 10px;
    }

    .history-content img {
        display: inline;
        margin-block: 2rem;
        width: 280px;
    }

    .history-content p {
        width: 100%;
        font-size: 1rem;
        margin-block: .4rem;
    }

    .history-content h1 {
        text-transform: uppercase;
        font-size: 2em;
    }

    .history-content h2 {
        font-size: 1em;
    }

    /* Modal Styles */
    .licenseModal {
        padding-top: 60px;
    }

    .licenseModal-content {
        background-color: #fefefe;
        margin: auto;
        padding: 10px;
        border: 1px solid #888;
        overflow: scroll;
        width: 100%;
        height: 100%;
    }

    .closeLicenses {
        color: #e77e7e;
        float: right;
        font-size: 38px;
        font-weight: bold;
    }

    .closeLicenses:hover,
    .closeLicenses:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }


    /* Licenses section */

    /* history  */
    .history-content {
        max-width: 100%;
        padding: 10px;
        line-height: 1.2;
    }

    .history-img-frame img {
        width: fit-content;
        height: 220px;
    }

    .history h1 {
        font-size: 2em;
        padding: 3% 5%;
    }
}

/* tablet */
@media screen and (max-width: 824px) {
    .navbar {
        display: flex;
        align-items: center;
        position: fixed;
        height: 70px;
        background: white;
    }

    .navbar.scrolled {
        height: 70px;
    }

    .navbar.scrolled a {
        color: white;
    }

    .navbar ul {
        position: absolute;
        overflow-y: hidden;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 3;
        height: fit-content;
        display: none;
        text-align: left;
        background-color: var(--primary-color);
    }

    .navbar-logo h3 {
        font-size: 4vw;
        color: var(--primary-color);
    }

    .navbar-logo {
        position: absolute;
        right: 5%;
    }

    .navbar ul.sub-menus {
        width: 100%;
        position: static;
    }

    .navbar ul.sub-menus a {
        padding-left: 30px;
    }

    .navbar li {
        display: block;
        float: none;
        width: auto;
    }

    .navbar input,
    .navbar label {
        position: absolute;
        top: 10px;
        left: 0;
        display: block;
    }

    .navbar input {
        z-index: 10000
    }

    .navbar input:checked+label {
        color: #000000
    }

    .navbar input:checked+label:before {
        content: "\00d7"
    }

    .navbar input:checked~ul {
        display: block
    }

    .navbar a {
        line-height: 60px;
        font-size: 18px;
    }

    /* hero section */
    .home-content {
        top: calc(20% + 1vw);
    }

    .home-content h1 {
        font-size: 4em;
        padding-inline: 1rem;
        margin-bottom: 1rem;
    }

    .home-content h2 {
        margin-inline: 30px;
        font-size: 2em;
        margin-bottom: 1rem;
    }

    /* founder section */
    .founder-message {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
        max-width: 100%;
        font-size: 140%;
    }

    .founder-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 1rem 0rem;
    }

    .founder-img-name {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .founder-img-name h4 {
        font-size: calc(20px + 1 vw);
    }

    /* social media */
    .sm-bg2 {
        z-index: 0;
        width: 600px;
        position: absolute;
        left: 20px;
        bottom: 0;
    }

    .smRow {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-left: 0px;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    /* milestones */
    .milestone {
        padding: 1rem;
    }

    .ms-tittle {
        margin-top: 2rem;
        font-size: 90%;
    }

    .ms-card {
        width: 100%;
    }

    .ms-card p {
        margin-inline: 3rem;
        font-size: 180%;
    }

    .ms-line {
        rotate: 90deg;
        margin-block: 2rem;
        width: 100%;
    }

    .ms-card h1 {
        font-size: 2em;
    }

    .ms-circle {
        width: 230px;
        height: 230px;
    }

    /* vision mission value */
    .vision {
        justify-content: center;
        width: 100%;
        height: 500px;
    }

    .vision .value-img {
        width: 300px;
        height: 300px;
        border-radius: 20px;
        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.203);
        margin-bottom: 2rem;
    }

    /* seabased career */
    .sb-river {
        border-radius: 0px;
        flex-direction: column;
    }

    .sb-career h1 {
        margin-top: 2rem;
        text-align: center;
        font-size: 2em;
    }

    .river-content {
        order: 2;
        width: 100%;
    }

    .sb-river-img {
        order: 1;
        flex: 1;
        width: 100%;
        min-height: 500px;
        background-position: top;
    }

    .sb-career-cta {
        display: flex;
        flex-wrap: wrap;
        gap: 0rem;
    }

    .sb-career-cta a {
        width: 300px;
    }

    .river-content a {
        margin-top: 1rem;
    }
}