* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    outline: none;
}

html {
    overflow-x: hidden;
}

body{
    background-color: #f3f3f3;
    font-family: 'Raleway', sans-serif;
    height: 100vh;
    overflow-x: hidden;
    color: #3d3c56;
}

body::-webkit-scrollbar {
    width: 0px;
}

/* header section */
header {
    height: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #3d3c56;
}

.logo {
    height: fit-content;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamburger {
    color: #fff;
    display: none;
    cursor: pointer;
}

header a {
    color: #f3f3f3;
}

.search {
    padding: 10px;
}

header nav ul,
.search {
    display: flex;
    align-items: center;
    transition: color 0.4s ease-in-out;
}

header nav ul li {
    margin: 10px;
}

header nav ul li a {
    color: #fff;
    font-size: 18px;
    text-transform: capitalize;
}

header ul li a:hover,
.search-login svg:hover {
    color: #f3f3f3;
}

.search-login {
    padding: 10px;
}

.search-login a {
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-transform: capitalize;
}

.search-login a svg {
    margin-right: 5px;
}

/* hero section */
.hero {
    height: 90vh;
    width: 100%;
    background-image: url(../images/background/annie-spratt-hCb3lIB8L8E-unsplash.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .carousel {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(0,0,0,0.6);
    padding: 30px;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-track-container {
    height: 90%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 250ms ease-in;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-details {
    width: 100%;
    padding: 30px;
}

.carousel-details h1 {
    color: #f3f3f3;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}

.carousel-details p {
    margin-bottom: 20px;
    color: #f3f3f3;
}

.carousel-details button {
    border: 1px solid #ccc;
    outline: 0;
    width: fit-content;
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    text-transform: capitalize;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    display: flex;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

.carousel-button-left {
    left: 13px;
    background-color: #fff;
    color: #555454;
}

.carousel-button-right {
    right: 15px;
    background-color: #fff;
    color: #555454;
}

.carousel-button svg {
    width: 18px;
    height: 18px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    height: 10%;
    display: none;
}

.carousel-indicator {
    display: none;
    border: 0;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: #fcf3cf;
    margin: 0 12px;
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background-color: #fff;
}

.is-hidden {
    display: none;
}

/* client list section */
.client-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 50px;
}

.client-item-left,
.client-item-right {
    width: 48%;
    padding: 10px;
}

.client-item-left {
    display: grid;
    place-items: center;
    margin-inline: 10px;
    padding-block: 5px;
}

.client-items-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 3.5rem;
    column-gap: 1.5rem;
}

.client-list-item {
    position: relative;
    overflow: hidden;
}

.card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    background-color: #f47920;
    padding: 10px;
    color: #fff;
    text-transform: capitalize;
    font-weight: 700;
    font-size: 25px;
    border-radius: 5px;
    word-wrap: break-word;
}

.card-data {
    position: absolute;
    width: 160px;
    height: 120px;
    overflow-x: auto;
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
    border-radius: 5px;
    bottom: -9rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    opacity: 0;
    transition: opacity 1s 1s;
    word-wrap: break-word;
}

.card-data::-webkit-scrollbar {
    width: 0px;
}

.card-desc {
    display: block;
    font-size: 15px;
    margin-bottom: .25rem;
    font-style: italic;
}

.card-title {
    font-size: 17px;
    font-weight: 500;
    color: #3d3c56;
    margin-bottom: .75rem;
}

.card-button {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #f47920;
    text-transform: capitalize;
}

.card-button:hover {
    text-decoration: underline;
}

.client-list-item:hover .card-data {
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity .3s;
}

.client-list-item:hover {
    animation: remove-overflow 2s forwards;
}

.client-list-item:not(:hover) {
    animation: show-overflow 2s forwards;
}

.client-list-item:not(:hover) .card-data {
    animation: remove-data 1s forwards;
}

.client-item:nth-child(even) {
    flex-direction: row-reverse;
    background-color: white;
}

.client-item:nth-child(even) .client-item-left {
    border-radius: 5px;
}

.client-item:nth-child(even) button {
    background-color: transparent;
    padding: 8px;
    text-transform: capitalize;
    font-size: 18px;
    outline: none;
    border: 1px solid #f47920;
    border-radius: 5px;
    color: #f47920;
    cursor: pointer;
}

.client-item:nth-child(even) button:hover {
    background-color: #f47920;
    border: 1px solid #f47920;
    color: #fff;
}

.sub-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: normal;
    color: #f47920;
}

.client-item-right h2 {
    font-size: 40px;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.client-item-right .desc {
    margin-bottom: 20px;
    font-size: 15px;
}

.client-item-right button {
    background-color: #f47920;
    padding: 8px;
    text-transform: capitalize;
    font-size: 18px;
    outline: none;
    border: 1px solid #f47920;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
}

.client-item-right button:hover {
    background-color: transparent;
    border: 1px solid #f47920;
    color: #f47920;
}

/* footer */
footer {
    background-color: #3d3c56;
    padding: 10px;
    color: #ffffff;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #ffffff;
}

footer a:hover {
    color: #f3f3f3;
    text-decoration: underline;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    text-transform: capitalize;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-top {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.footer-left,
.footer-middle,
.footer-right {
    padding: 10px;
}

.footer-left {
    width: 35%;
}

.footer-left .event-news-box {
    margin-top: 20px;
}

.footer-left .event-news-box .event-news-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-left .event-news-box .event-news-item:not(:last-child) {
    padding-bottom: 10px;
    border-bottom: 0.6px dotted #fff;
}

.footer-left .event-news-box .event-news-item:not(:first-child) {
    padding-top: 10px;
}

.details-right {
    width: 100%;
}

.item-title {
    font-family: 18px;
    font-weight: 700;
    text-transform: capitalize;
}

.footer-middle {
    width: 30%;
}

.footer-middle .footer-title {
    text-align: center;
}

.footer-middle ul {
    text-align: center;
    margin-top: 20px;
}

.footer-middle ul li {
    margin: 15px;
}

.footer-right {
    width: 35%;
}

.second-title {
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    text-transform: capitalize;
    color: #ffffff;
    margin-top: 20px;
}


.footer-right span {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-right span svg {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.footer-right .socials-box {
    display: flex;
    flex-direction: row;
}

.footer-right a {
    background-color: #f3f3f3;
    color: #3d3c56;
    padding: 10px;
    border: 1px solid #f3f3f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    width: fit-content;
}

.footer-right a:not(:last-child) {
    margin-right: 10px;
}

.footer-right a svg {
    height: 26px;
    width: 26px;
}

.footer-right a:hover {
    color: #555454;
}

.footer-copyright {
    padding: 20px;
    text-align: center !important;
}

/* popups modules */
/* contact us popup */
.contact-us-popup {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    transition: 0.3s;
    transform: scale(1);
    display: none;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.contact-us-content {
    position: relative;
    height: 500px;
    width: 700px;
    overflow: hidden;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
}

.contact-us-close svg {
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    cursor: pointer;
}

.contact-us-title {
    text-align: center;
    padding: 20px;
}

.contact-us-title h5 {
    font-weight: bold;
    color: #3d3c56;
    font-size: 30px;
    margin-bottom: 10px;
}

.contact-us-form-content {
    color: #555454;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-us-form-left,
.contact-us-form-right {
    width: 48%;
    margin-top: 20px;
}

.contact-us-form-left ul li {
    display: flex;
    flex-direction: row;
    margin: 15px 0 20px 0;
}

.contact-us-form-left ul li .office-svg {
    width: 13%;
}

.contact-us-form-left ul li svg {
    width: 30px;
    height: 30px;
    padding: 5px;
    background: #f47920;
    border-radius: 50%;
    color: #fff;
}

.contact-us-form-left ul li .office-details {
    width: 87%;
}

.contact-us-form-left ul li span {
    font-weight: bold;
}

.contact-us-form {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid lightgrey;
    border-radius: 10px;
    width: 100%;
    overflow-x: auto;
}

.contact-us-form::-webkit-scrollbar {
    width: 0;
}

.contact-us-form .form-col {
    width: 100%;
    margin-bottom: 20px;
}

.contact-us-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-us-form .form-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact-us-form .form-row .form-group {
    width: 48%;
}

.contact-us-form .form-group label {
    font-size: 16px;
    color: #3d3c56;
    margin-bottom: 10px;
}

.contact-us-form .form-group label span {
    color: red;
}

.contact-us-form .form-group input {
    padding: 5px;
    padding-left: 6px;
    padding-right: 6px;
    color: #555454;
    border: 1px solid lightgray;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

.contact-us-form .form-col textarea {
    resize: none;
    width: 100%;
    height: 60px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid lightgray;
    border-radius: 10px;
    outline: none;
}

.contact-us-form button {
    border: #3d3c56;
    background-color: #3d3c56;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    padding: 13px;
    width: 100%;
}

/* keyframes */
@keyframes show-data {
    50% {
        transform: translateY(-10rem);
    }

    100% {
        transform: translateY(-7rem);
    }
}

@keyframes remove-overflow {
    to {
        overflow: initial;
    }
}

@keyframes remove-data {
    0% {
        transform: translateY(-7rem);
    }
    50% {
        transform: translateY(-10rem);
    }
    100% {
        transform: translateY(.5rem);
    }
}

@keyframes show-overflow {
    0% {
        overflow: initial;
        pointer-events: none;
    }
    50% {
        overflow: hidden;
    }
}

/* media query */
@media only screen and (max-width: 1320px){
    header {
        padding: 0 50px;
    }

    .logo {
        font-size: 18px;
    }

    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        font-size: 15px;
        margin: 0;
    }

    .client-items-box {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1.5rem;
    }
}

@media only screen and (max-width: 1100px){
    header {
        padding: 0 30px;
    }

    .logo {
        font-size: 10px;
    }

    .client-items-box {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem;
    }

    .card-img {
        width: 100px;
        height: 150px;
        font-size: 20px;
    }
}

@media only screen and (max-width: 912px){
    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger svg {
        width: 40px;
        height: 40px;
        color: #ffffff;
        margin: 6px 0;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        height: 0;
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        width: 100vw;
        background-color: #3d3c56;
        color: #ffffff;
        overflow: hidden;
    }

    .search-login {
        height: 0;
        position: absolute;
        top: 290px;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw;
        background-color: #3d3c56;
        color: #ffffff;
        overflow: hidden;
    }

    nav.active,
    .search-login.active {
        height: auto;
        z-index: 1;
    }

    nav ul {
        flex-direction: column;
        width: fit-content;
        margin: 0 auto 0 auto;
        text-align: center;
        opacity: 0;
    }

    .search-login {
        flex-direction: column;
        margin: 0 auto 0 auto;
        text-align: center;
        opacity: 0;
    }

    nav ul li a,
    .search-login a {
        margin-bottom: 12px;
    }

    nav.active ul,
    .search-login.active {
        opacity: 1;
    }
}

@media only screen and (max-width: 800px) {
}

@media only screen and (max-width: 768px) {
}

@media only screen and (max-width: 540px) {
    .hero {
        height: 60vh;
    }
    
    .client-item-left,
    .client-item-right {
        width: 100%;
    }

    .client-items-box {
        grid-template-columns: repeat(1, 1fr);
        column-gap: 1.5rem;
    }

    .card-img {
        width: 200px;
        height: 180px;
        font-size: 25px;
    }

    .card-data {
        width: 180px;
    }

    .carousel-details h1 {
        font-size: 25px;
    }

    .carousel-details p {
        font-size: 14px;
    }

    .carousel button {
        padding: 8px;
    }

    .footer-left,
    .footer-middle,
    .footer-right {
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-middle ul,
    .footer-middle .footer-title {
        text-align: left;
    }

    .footer-middle ul li {
        margin-left: 0px;
    }

    .contact-us-content {
        width: 400px;
    }

    .contact-us-form .form-row .form-group {
        width: 100%;
    }

    .contact-us-form-left,
    .contact-us-form-right {
        width: 100%;
    }

    .contact-us-form-left {
        margin-top: 0;
    }

    .contact-us-form-left ul li .office-details {
        padding-left: 10px;
    }
}

@media only screen and (max-width: 460px) {
    .contact-us-content {
        width: 300px;
    }

    .client-item-left {
        margin-inline: 1rem;
    }

    .card-data {
        padding: 1rem;
    }
}