@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    overflow-x: hidden;
}
nav{
    height: 6rem;
    width: 100vw;
    background-color: white;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    position: fixed;
    z-index: 10;
    top: 0;
}

.logo{
    padding:1vh 1vw;
    text-align: center;
}

.logo img {
    height: 100%;
}

.nav-links{
    display: flex;
    list-style: none; 
    width: 88vw;
    padding: 0 0.7vw;
    justify-content: space-evenly;
    align-items: center;
    text-transform: uppercase;
}
.nav-links li a{
    text-decoration: none;
    margin: 0 0.7vw;
    color: black;
}
.nav-links li a:hover {
    color: #61DAFB;
}
.nav-links li {
    position: relative;
}
.nav-links li a::before {
    content: "";
    display: block;
    height: 3px;
    width: 0%;
    background-color: #61DAFB;
    position: absolute;
    transition: all ease-in-out 250ms;
    margin: 0 0 0 10%;
}
.nav-links li a:hover::before{
    width: 80%;
}

.hamburger div{
    width: 30px;
    height:3px;
    background: black;
    margin: 5px;
    transition: all 0.3s ease;
}
.hamburger{
    display: none;
}

@media screen and (max-width: 800px){
    nav{
        position: fixed;
        z-index: 3;
    }
    .hamburger{
        display:block;
        position: absolute;
        cursor: pointer;
        right: 5%;
        top: 50%;
        transform: translate(-5%, -50%);
        z-index: 2;
        transition: all 0.7s ease;
    }
    .nav-links{
        position: fixed;
        background: white;
        height: 100vh;
        width: 100%;
        flex-direction: column;
        clip-path: circle(50px at 90% -20%);
        -webkit-clip-path: circle(50px at 90% -10%);
        transition: all 1s ease-out;
        pointer-events: none;
    }
    .nav-links.open{
        clip-path: circle(1000px at 90% -10%);
        -webkit-clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }
    .nav-links li{
        opacity: 0;
    }
    .nav-links li:nth-child(1){
        transition: all 0.5s ease 0.2s;
    }
    .nav-links li:nth-child(2){
        transition: all 0.5s ease 0.4s;
    }
    .nav-links li:nth-child(3){
        transition: all 0.5s ease 0.6s;
    }
    .nav-links li:nth-child(4){
        transition: all 0.5s ease 0.7s;
    }
    .nav-links li:nth-child(5){
        transition: all 0.5s ease 0.8s;
    }
    li.fade{
        opacity: 1;
    }
}
.toggle .line1{
    transform: rotate(-45deg) translate(-5px,6px);
}
.toggle .line2{
    transition: all 0.7s ease;
    width:0;
}
.toggle .line3{
    transform: rotate(45deg) translate(-5px,-6px);
}

.blog-card {
    width:350px;
    box-sizing: border-box;
    margin: 2rem auto;
    box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
    padding: 5px;
    border-radius: 15px;
    background-color: whitesmoke;
    text-align: center;
}

.blog-card:hover {
    transform: scale(1.03);
}

.blog-card img {
    height: 15rem;
    width: 100%;
    object-fit: contain;
    border-radius: 6px 6px 0 0;
}

.blog-content {
    background-color: whitesmoke;
    padding: 0.3rem 2rem 1rem 2rem;
}

.blog-label {
    display: inline-block;
    background-color: rgb(16, 123, 194);
    color: white;
    border-radius: 15px;
    padding: 0 1rem;
}

.cards {
    display: flex;
    color: black;
}

@media only screen and (max-width: 1250px) {
    .blog-card {
        width: 300px;
    }
}

@media only screen and (max-width: 950px) {
    .cards {
        flex-direction: column;
    }
    .blog-card {
        width: 80%;
        max-width: 500px;
    }
}

main {
    width: 100%;
    height: fit-content;
    min-height: 700px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2300a2ff' fill-opacity='1' d='M0,256L48,240C96,224,192,192,288,197.3C384,203,480,245,576,229.3C672,213,768,139,864,106.7C960,75,1056,85,1152,106.7C1248,128,1344,160,1392,176L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 80px;
    color: white;
}

.servicesmain {
    min-height: 800px;
}

#hero {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
}

#cartoon {
    width: 400px;
}

#headers {
    width: 500px;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    max-width: 80%;
}

#welcomep {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: bold;
}

#jdpcspan {
    color: rgb(0, 51, 169);
}

#h1 {
    font-size: 45px;
    line-height: 45px;
}

#headerlist {
    margin-top: 10px;
    list-style: inside;
}

#headingbtns {
    width: fit-content;
    margin-top: 10px;
}

#headingbtns button {
    padding: 10px;
    width: 150px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: white;
    border: none;
}

#headingbtns button:hover {
    cursor: pointer;
}

#aboutbtn {
    background-color: black;
}

#bookbtn {
    background-color: rgb(0, 51, 169);
}

#dorset {
    color: rgb(0, 51, 169);
}

@media only screen and (max-width: 600px) {
    #h1 {
        font-size: 35px;
    }

    #welcomep {
        font-size: 18px;
    }
}

@media only screen and (max-width: 450px) {
    #headingbtns {
        height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    }
    .logo img {
        height: 80%;
    }
    .logo {
        display: flex;
        align-items: center;
    }
}

@media only screen and (max-width: 950px) {
    #cartoon {
        width: 300px;
    }
    #home-mid {
        margin-top: -180px !important;
    }
}


@media only screen and (max-width: 690px) {
    #home-mid {
        margin-top: -100px !important;
    }
}


@media only screen and (max-width: 800px) {
    #cartoon {
        width: 250px;
    }
}

@media only screen and (max-width: 650px) {
    #hero {
        flex-direction: column;
    }
    #cartoon {
        margin-top: 30px;
    }
    #home-mid {
        margin-top: 0px !important;
    }
}

.briefintro {
    color: #0a197b;
    padding: 10px;
}

#home-mid {
    margin-top: -200px;
    margin-bottom: 150px;
}

@media only screen and (min-width: 1400px) {
    #home-mid {
        max-width: 1400px;
        margin: auto;
        margin-top: -200px;
    }
}

#why {
    min-height: 450px;
    height: fit-content;
    background-color: #0088ff;
    color: white;
    display: flex;
    align-items: center;
}

#why-inner {
    max-width: 1300px;
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    height: fit-content;
    padding: 20px;
}

#why-inner div {
    width: 50%;
}

#why-inner img {
    width: 400px;
}

#why-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#why-content p {
    margin-top: 15px;
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
}

#why-p1 {
    font-size: 22px !important;
}

#why-content h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 35px;
}

@media only screen and (max-width: 820px) {
    #why-inner {
        flex-direction: column-reverse;
        min-height: 500px;
    }
    #why-inner div {
        width: 100%;
        margin: auto;
    }
    #why-img {
        text-align: center;
    }

    #why-img img {
        width: 450px !important;
    }
}

@media only screen and (max-width: 500px) {
    #why-img img {
        width: 100% !important;
    }
}

@media only screen and (max-width: 1000px) {
    #why-img img {
        width: 330px;
    }
}



#xp {
    min-height: 450px;
    height: fit-content;
    background-color: #ffffff;
    color: black;
    display: flex;
    align-items: center;
}

#xp-inner {
    max-width: 1300px;
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    height: fit-content;
    padding: 20px;
}

#xp-inner div {
    width: 50%;
    padding: 10px;
    height: fit-content;
}

#xp-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

#xp-img img {
    width: 400px !important;
}

#xp-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#xp-content p {
    margin-top: 15px;
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
}

#xp-p1 {
    font-size: 22px !important;
}

#xp-content h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 35px;
}

@media only screen and (max-width: 820px) {
    #xp-inner {
        flex-direction: column;
        min-height: 500px;
    }
    #xp-inner div {
        width: 100%;
        margin: auto;
    }
    #xp-img {
        text-align: center;
    }

    #xp-img img {
        width: 450px !important;
    }
}

@media only screen and (max-width: 500px) {
    #xp-img img {
        width: 100% !important;
    }
}

@media only screen and (max-width: 1000px) {
    #xp-img img {
        width: 330px;
    }
}

#review-container {
    border-top: 2px solid black;
    padding-top: 100px;
    padding-bottom: 100px;
    background-color:#0088ff;
}

#reviews-section {
    width: 90%;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.review {
    display: none;
    padding: 20px;
    background-color: white;
    border: 1px solid rgb(94, 185, 250);
    box-shadow: 0px 0px 10px 5px rgb(55, 195, 234);
}

.review.active {
    display: block;
}

.review img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.review .rating {
    color: gold;
    font-size: 42px;
}

#next-review {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: white;
    border-radius: 5px;
    border: 1px solid #0a197b;
}

#next-review:hover {
    cursor: pointer;
}

.footer{
    background:#000;
    padding:30px 0px;
    font-family: 'Play', sans-serif;
    text-align:center;
}

.footer .row{
    width:100%;
    margin:1% 0%;
    padding:0.6% 0%;
    color:gray;
    font-size:0.8em;
}

.footer .row a{
    text-decoration:none;
    color:gray;
    transition:0.5s;
}

.footer .row a:hover{
    color:#fff;
}

.footer .row ul{
    width:100%;
}

.footer .row ul li{
    display:inline-block;
    margin:0px 30px;
}

.footer .row a i{
    font-size:2em;
    margin:0% 1%;
}

@media (max-width:720px){
    .footer{
        padding:5%;
    }
    .footer .row ul li{
        display:block;
        margin:10px 0px;
    }
    .footer .row a i{
        margin:0% 3%;
    }
}

#aboutheader {
    text-align: center;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#aboutheader h1 {
    font-size: 48px;
}

#team-section {
    padding: 40px 0;
    margin-top: -200px;
}

.team-container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

.team-heading {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.team-members {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.team-member {
    flex-basis: 30%;
    text-align: center;
    margin-bottom: 30px;
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-member-name {
    color: #007bff;
    font-size: 20px;
}

.team-member-bio {
    color: #666;
    font-size: 16px;
}

.bullet-points {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    color:white;
}

.bullet-point {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.bullet-point .icon {
    width: 40px;
    margin-right: 10px;
}

.bullet-point p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

#points {
    font-weight: bold;
}

.carouselcontainer {
    width: 1000px;
    max-width: 95%;
    margin: auto;
    overflow: hidden;
    margin-bottom: 100px;
}

.c-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-items: center;
    justify-items: center;
}

.c-images img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

@media screen and (max-width: 660px) {
    .c-images {
        grid-template-columns: 1fr;
    }
}

#cta {
    border: 0;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px white;
    background-color:#16ae55;
    font-size: 22px;
    color: white;
    padding: 20px;
    position: absolute;
    margin: auto;
    left: 50%;
    transform: translateX(-50%) !important;
}

#cta:hover {
    cursor: pointer;
}

.bpservices {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s, transform 0.5s;
}

.readmore {
    text-align: center;
    color: #007bff;
    margin-bottom: 10px;
}

#down {
    font-size: 22px;
    color: white;
    padding: 20px;
    position: absolute;
    margin: auto;
    margin-top: 120px;
    left: 50%;
    transform: translateX(-50%) !important;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.topread {
    box-shadow: 0px -5px 10px rgb(3, 81, 164);
}

.form-container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 0px 10px 5px #007bff;
    margin: auto;
    max-width: 550px;
    width: 90%;
    padding: 20px;
    margin-bottom: 200px;
}

.form-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgb(11, 59, 121);
}

.form-label {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 10px;
    width: 350px;
    max-width: 90%;
}

.form-label > span {
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
}

textarea {
    height: 120px;
}

.sendemail {
    width: 350px;
    max-width: 90%;
    padding: 10px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.sendemail:hover {
    background-color: #0056b3;
}

.c-header-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.contact-details {
    display: flex;
}

.email,
.phone {
    text-align: center;
    margin: 0;
    margin-bottom: 30px;
}

.email i,
.phone i {
    font-size: 28px;
}