@import url('https://fonts.googleapis.com/css2?family=Benne&display=swap');

:root {
    --blue: #4498a3;
    --black: #5f3f34;
}

* {
    font-family: 'Benne', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none !important;
    text-decoration: none !important;
    text-transform: capitalize;
    font-weight: 400;
    transition: all .2s linear;
}

*::selection {
    background: var(--black);
    color: #fff;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    /* height: 5000px; */
}

section {
    overflow: hidden;
}

#navbar {
    display: flex;
    align-items: center;
    top: 0px;
}

.heading {
    text-align: center;
    font-size: 4rem;
    padding: 1rem;
    padding-top: 7rem;
    color: var(--black);
}

.heading span {
    color: var(--blue);
}

.header-active {
    background: rgb(255, 255, 255);
    box-shadow: 0 .1rem .3rem rgba(0, 0, 0, .3);
    opacity: 0.8;
    padding: .5rem 1rem;
    width: 100%;
    padding: 1.2rem 0rem;
    z-index: 100;
}


header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0.5rem 0rem;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    color: var(--black);
}

header a:hover {
    color: var(--blue);
}

header .container .logo {
    font-size: 3rem;
}

header .container .logo span {
    color: var(--blue);
}


header .nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none !important;
}

header .nav ul li {
    margin: 0 1rem;
}

header .nav ul li a {
    font-size: 2rem;
}

header .fa-bars {
    font-size: 3rem;
    color: var(--blue);
    cursor: pointer;
    display: none;
}

header .fa-times {
    transform: rotate(180deg);
}

#navbar::before {
    content: " ";
    background-color: black;
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0.06;
}

#navbar:hover:before {
    opacity: 0.1;
}



/* home part */
#home{
    padding-bottom: 50px;
}
#home::before {
    content: " ";
    position: absolute;
    background: url('images/homebg.jpg') no-repeat center/cover;
    top: 0px;
    left: 0px;
    height: 790px;
    width: 100%;
    z-index: -1;
    opacity: 0.80;
}

.home .content {
    text-align: center;
}

.home .content h1 {
    font-size: 5rem;
    color: var(--black);
}

.home .content h1 span {
    color: var(--blue);
}

.button {
    height: 3rem;
    width: 10rem;
    background: var(--blue);
    color: #fff;
    font-size: 1.8rem;
    text-transform: capitalize;
    cursor: pointer;
    position: relative;
    z-index: 0;
    overflow: hidden;
    border-radius: .5rem;
    margin: .5rem 0;
}

#homebtn::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--black);
    z-index: -1;
    transition: .2s linear;
}

.button:hover:before {
    top: 0%;
}

.button:hover {
    box-shadow: .1rem .5rem var(--black),
        0 .3rem .5rem rgba(109, 74, 74, 0.3);
}

#homeimg {
    margin-top: 12rem;
}

/* about section */
.about {
    background: #eee;
    padding-bottom: 50px;
}

.about .content .box {
    margin: 3rem 0 0 6rem;
}

.about .content .box h3 {
    font-size: 3rem;
    color: var(--black);
}

.about .content .box h3 i {
    padding: 0.2rem;
    color: var(--blue);
}

.about .content .box p {
    font-size: 1.5rem;
    padding-left: 5rem;
    padding-right: 2rem;
    color: rgb(85, 84, 84);
}

#aboutimg {
    padding-top: 5rem;
    padding-left: 8rem;
    padding-right: 4rem;
    padding-bottom: 5rem;
}

/* media queries */
@media (max-width:767px) {

    html {
        font-size: 55%;
    }

    header .fa-bars {
        display: block;
    }

    header .nav {
        position: fixed;
        top: -100rem;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 0 100vh rgba(0, 0, 0, 0.2);
        border-radius: 0.5rem;
        border: 0.3rem solid var(--blue) !important;
        background: #fff;
        z-index: 100;
        padding: 2rem;
        width: 95%;
        opacity: 0;
    }

    header .nav ul {
        width: 100%;
        flex-flow: column;
        padding: 2rem 0;
    }

    header .nav ul li {
        width: 100%;
        text-align: center;
        margin: 1rem 0;
    }

    header .nav ul li a {
        font-size: 3rem;
        display: block;
    }

    header .nav-toggle {
        top: 50%;
        opacity: 1;
    }

    #home::before {
        height: 780px;
    }
}

/* facility section */
.facility {
    min-height: 100vh;
    background-color: rgb(224, 224, 231);
}

.facility .box-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 1rem;
}

.facility .box-container .box {
    height: 20rem;
    width: 30rem;
    margin: 0.5rem;
    overflow: hidden;
}

.facility .box-container .box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.facility .box-container .box:hover img {
    transform: scale(1.3);
}

/* post section */

.containerPost {
    /* position: absolute; */
    /* top: 50%;
    left: 50%; */
    display: flex;
    justify-content: center;
    overflow: hidden;
    /* flex-wrap: wrap; */
    transform: translate(0%, 0%);
}

.img {
    height: 45vh;
    width: 40vw;
    transition: .3s;

}

.One {
    z-index: -2;
    transform: translateX(25.9rem);
    clip-path: polygon(50% 0, 65% 50%, 50% 100%, 0% 100%, 0 50%, 0 0);
}

.Two {
    transform: translateX(-27rem);
    clip-path: polygon(100% 0, 100% 50%, 100% 100%, 50% 100%, 50% 100%, 65% 50%, 50% 0);
}

.text {
    position: absolute;
    right: 42%;
    top: 15%;
    width: 0;
    height: 18rem;
    background: #fff;
    transition: 2s ease;
    box-shadow: 0 5px 3px rgb(0, 0, 0, .1);
    overflow: hidden;
    padding: 1rem .5rem;
    z-index: -1;
}

.text h3 {
    font-size: 2rem;
}

.text p {
    color: var(--black);
    margin: .5rem 0;
    padding-right: 4rem;
    font-size: 1.5rem;
}

.containerPost:hover .One {
    transform: translateX(24.9rem);
}

.containerPost:hover .Two {
    transform: translateX(-26rem);
}

.containerPost:hover .text {
    width: 38rem;
}

@media (max-width:1177px) {
    .text p {
        padding-right: 3rem;
    }

    .One {
        transform: translateX(24.3rem);
    }

    .Two {
        transform: translateX(-23rem);
    }

    .containerPost:hover .One {
        transform: translateX(21rem);
    }

    .containerPost:hover .Two {
        transform: translateX(-21rem);
    }
}

@media (max-width:991px) {
    .One {
        transform: translateX(17.3rem);
    }

    .Two {
        transform: translateX(-18rem);
    }

    .containerPost:hover .One {
        transform: translateX(16.3rem);
    }

    .containerPost:hover .Two {
        transform: translateX(-16rem);
    }

    .img {
        height: 55vh;
    }
}

@media (max-width:767px) {
    .containerPost:hover .text {
        width: 35rem;
    }

    .One {
        transform: translateX(14rem);
    }

    .Two {
        transform: translateX(-16rem);
    }

    .containerPost:hover .One {
        transform: translateX(13rem);
    }

    .containerPost:hover .Two {
        transform: translateX(-15rem);
    }

    .img {
        height: 50vh;
    }
}

@media (max-width:575px) {
    .containerPost:hover .text {
        width: 35rem;
    }

    .One {
        transform: translateX(16rem);
    }

    .Two {
        transform: translateX(-16rem);
    }

    .containerPost:hover .One {
        transform: translateX(15rem);
    }

    .containerPost:hover .Two {
        transform: translateX(-15rem);
    }

    .img {
        height: 50vh;
    }
}


/* contact section */
.contact {
    background: rgb(231, 243, 241);
}

.contact .content .contactbox {
    margin: 2rem 0 0 5rem;
}

.contact .content .contactbox h3 {
    font-size: 3rem;
    text-transform: none;
    color: var(--black);
}

.contact .content .contactbox h3 i {
    padding: 0.2rem;
    color: var(--blue);
}

#contact-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: whitesmoke;
    border-radius: 8px;
    margin: 2rem;
    margin-left: 4rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#contact-box form {
    width: 80%;
}

#contact-box label {
    font-size: 1.3rem;
}

#contact-box input,
#contact-box textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
}

button[type="submit"] {
    width: 100%;
    border: none;
    outline: none;
    padding: 20px;
    font-size: 24px;
    border-radius: 8px;
    font-family: "Montserrat";
    color: rgb(27, 166, 247);
    background-color: #dadada;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s ease background-color;
}

button[type="submit"]:hover {
    background-color: rgb(214, 226, 236);
}

#status {
    text-align: center;
    width: 80%;
    max-width: 500px;
    text-align: center;
    padding: 10px;
    margin: 0 auto;
    margin-bottom: 2rem;
    border-radius: 8px;
    font-size: 2rem;
}

#status.success {
    background-color: rgb(211, 250, 153);
    animation: status 4s ease forwards;
}

#status.error {
    background-color: rgb(250, 129, 92);
    color: white;
    animation: status 4s ease forwards;
}

#map {
    background-color: white;
    padding: 1.5rem;
    margin: 2rem;
}

@keyframes status {
    0% {
        opacity: 1;
        pointer-events: all;
    }

    90% {
        opacity: 1;
        pointer-events: all;
    }

    100% {
        opacity: 0;
        pointer-events: none;
    }
}

/* appointment section */

.appointment {
    background: rgb(72, 72, 73);
}

.appointment .heading {
    color: #fff;
}

.appointment form {
    text-align: center;
}

.appointment form .inputBox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.appointment form .inputBox input,
select {
    height: 4rem;
    width: 49%;
    padding: 0 1rem;
    margin: 1rem 0;
    font-size: 1.7rem;
}

.appointment form textarea {
    height: 20rem;
    resize: none;
    padding: 1rem;
    font-size: 1.5rem;
    width: 100%;
}

.appointment form input[type="submit"] {
    width: 20rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.appointment form input[type="submit"]:hover {
    background: whitesmoke;
    color: black;
}

/* footersection */

footer {
    color: white;
    background-color: black;
    padding: 9px 20px;
}

footer .social {
    text-align: center;
    font-size: 4rem;
}

footer .center {
    text-align: center;
    font-size: 1.5rem;
}

footer .center p {
    font-size: 1rem;
}

footer .social i {
    color: white;
}

#fb:hover {
    font-size: 4.5rem;
}

#tw:hover {
    font-size: 4.5rem;
}

#ln:hover {
    font-size: 4.5rem;
}

#insta:hover {
    font-size: 4.5rem;
}