@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: rgb(209, 0, 36);
    --secondary-color: #524F53;
    --tertiary-color: rgb(14, 13, 13);
    --font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--tertiary-color);
}


body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--secondary-color) !important;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
}


.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

.col-1 {
    flex: 0 0 8.33%;
    max-width: 8.33%;
}

.col-2 {
    flex: 0 0 16.66%;
    max-width: 16.66%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

.col-5 {
    flex: 0 0 41.66%;
    max-width: 41.66%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-7 {
    flex: 0 0 58.33%;
    max-width: 58.33%;
}

.col-8 {
    flex: 0 0 66.66%;
    max-width: 66.66%;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-10 {
    flex: 0 0 83.33%;
    max-width: 83.33%;
}

.col-11 {
    flex: 0 0 91.66%;
    max-width: 91.66%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}



.navbar-collapse {
    flex-grow: 0 !important;
}

.navbar {
    background: #fff !important;
}

.navbar .container-fluid {
    padding: 0 50px;
}

.navbar .navbar-nav {
    gap: 20px;
}

.navbar .nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    transition: 0.4s;
    color: #000000;


    @media(max-width:1600px) {
        font-size: 14px;
    }
}

.navbar .nav-link:hover,
.navbar .nav-link:active {
    color: var(--primary-color);
}

.navbar .login-btn,
.navbar .signup-btn {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    border-radius: 25px;
    padding: 7px 25px !important;
    margin-right: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.navbar .login-btn:hover,
.navbar .signup-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}


.search-box-main {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6) url('../images/search-bg.png') no-repeat center center;
    background-size: cover;
    backdrop-filter: blur(5px);
    z-index: 1050;
    padding: 50px;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    width: 100%;
    max-width: 600px;
}

.search-box {
    flex: 1;
    font-size: 16px;
}

.search-submit {
    white-space: nowrap;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #FFF;
    background: var(--primary-color);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.custom-btn {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    border-radius: 25px;
    padding: 10px 25px;
    margin-right: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;

    &:hover {
        background-color: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

}

.main-title {
    font-family: Roboto;
    font-weight: 700;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
    margin-top: 50px;

}

.dropdown-item {
    text-wrap: wrap;
    border-bottom: 1px solid #E5E5E5;
}


/* Enable hover for top-level dropdown */
.nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;

    .hover-link .dropdown-item:hover {
        background-color: var(--primary-color) !important;
        color: #fff !important;
    }
}

.dropdown-submenu {
    position: relative;

    .dropdown-item:hover {
        background-color: var(--primary-color);
        color: #fff;
    }
}


.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    position: absolute;


    @media(max-width: 991px) {
        left: 0;
        top: 100%;
        margin-top: 0;
    }

    z-index: 1000;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* banner  */

.carousel {
    .carousel-inner {
        .carousel-item {
            position: relative;

            &::before {
                content: "";
                position: absolute;
                top: 0;
                left: 0;
                height: 100%;
                width: 100%;
                background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
                z-index: 1;
            }

            img {
                position: relative;
                z-index: 0;
            }

            .carousel-caption {
                top: 50%;
                left: 12%;
                transform: translateY(-50%);
                text-align: start;
                color: white;
                position: absolute;
                z-index: 2;

                h1 {
                    font-size: 3.2rem;
                    margin-bottom: 10px;
                    color: #fff !important;
                    font-weight: 900;
                }

                p {
                    font-size: 1.5rem;
                    margin-bottom: 15px;
                }
            }
        }


    }

    .carousel-indicators [data-bs-target] {
        background-color: white;
        border-radius: 50%;
        width: 15px;
        height: 15px;
        margin: 0 5px;
    }

    .carousel-indicators [data-bs-target].active {
        background-color: var(--primary-color);
    }

    .custom-btn{
        padding: 15px 50px;
        margin-top: 20px;
    }
}


/* Hero section */
.hero {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1; 
    }

    .hero-content {
        position: relative; 
        z-index: 2;

        h1 {
            font-size: 45px;
            color: #fff !important;
              text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        p {
            color: #fff !important;
        }
    }

    @media(max-width:600px) {
      

        .hero-content {
            h1 {
                font-size: 20px !important;
            }

            p {
                font-size: 14px;
            }
        }
    }
}

/* latest-updates  */
.latest-updates {
    .row{
        row-gap: 20px; 
    }
    .card {
        border: none;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        margin-bottom: 30px;
        height: 430px;

        img {
            border-radius: 10px 10px 0 0;
            height: 200px;
            object-fit: cover;
            width: 100%;
            object-position: top;

        }

        &:hover {
            transform: translateY(-5px);
        }
    }
}

/* about-seismic-academy  */
.about-seismic-academy {
    p {
        text-align: justify;
    }

    img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        height: 400px;
        object-fit: cover;
    }

    .about-seismic-text {
        text-align: justify;
        font-size: 16px;
        line-height: 1.5;
        font-weight: 400;

    }
}

/* knowledge-initiatives  */

.knowledge-initiatives {
    padding: 2rem 0;
}

.knowledge-initiatives .boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
}

.knowledge-initiatives .box {
    flex: 1 1 calc(20% - 20px);
    min-height: 500px;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 5px;
    overflow: hidden;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;

    &:hover {
        transform: translateY(-5px);
    }

}

.knowledge-initiatives .upper {
    background: #E6E6E6;
    padding: 35px;
    display: flex;
    justify-content: start;
    align-items: center;
}

.knowledge-initiatives .upper img {
    max-width: 100%;
    height: auto;
}

.knowledge-initiatives .middle {
    background: #BFBFBF;
    padding: 35px;
    display: flex;
    justify-content: start;
    align-items: center;
}

.knowledge-initiatives .round {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
}

.knowledge-initiatives .round h2 {
    font-size: 25px;
    font-weight: 700;
    color: #A6A6A6;
    margin: 0;
}

.knowledge-initiatives .bottom {
    background: #E6E6E6;
    padding: 15px;
    text-align: start;
    height: 350px;
    @media(max-width:991px){
        height: 250px;
    }
}

.knowledge-initiatives .bottom h6 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.knowledge-initiatives .bottom p {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    color: #333;
}

.knowledge-initiatives .lower {
    padding: 10px;
    background: #A6A6A6;
}

/* Box color customizations */
.box2 .middle {
    background: #D7CEBD;
}

.box2 .lower {
    background: #B19F7E;
}

.box3 .middle {
    background: #887F6E;
}

.box3 .lower {
    background: #665F53;
}

.box4 .middle {
    background: #595959;
}

.box4 .lower {
    background: #3E3B3E;
}

.box5 .middle {
    background: #3E3B3E;
}

.box5 .lower {
    background: #292729;
}

/* Responsive Design */
@media (max-width: 992px) {
    .knowledge-initiatives .box {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .knowledge-initiatives .box {
        flex: 1 1 100%;
    }
}


/* events  */
.events {
    padding: 2rem 0;
}

.card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0px 4px 4px 0px #00000040;
    transition: transform 0.3s ease;
    background: #fff;

    &:hover {
        transform: translateY(-5px);
    }
}

.upper {
    height: 150px;
    background: #B19F7E;
    padding: 20px 50px;

    h6 {
        color: #FFF !important;
        text-align: center;
        font-weight: 700;
        font-size: 20px;
        text-transform: uppercase;

    }
}

.lower {
    padding: 1rem 1rem 0 1rem;
    text-align: center;
    position: relative;
}

.events-detail {
    position: relative;
    margin-top: -100px;
    /* pull up over .upper */
    padding: 1rem;
    border-radius: 10px;
    z-index: 2;
}

.events-detail h6 {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.events-detail img {
    width: 100%;
    height: 200px;
    max-height: 250px;
    object-fit: cover;
    margin: 0.5rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.events-detail p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #333;
}


/* Testimonial  */
#testimonialSlider {
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
    background: url('../images/testimonial-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    padding-bottom: 300px;
}

#testimonialSlider .head {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#testimonialSlider .head .prev-btn,
#testimonialSlider .head .next-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    height: 50px;
    width: 50px;
    border-radius: 50%;
    outline: none;
    transition: .4s;
    cursor: pointer;
}

#testimonialSlider .head .prev-btn i,
#testimonialSlider .head .next-btn i {
    color: #fff;
    font-size: 18px;
}

#testimonialSlider .head .prev-btn:hover,
#testimonialSlider .head .next-btn:hover {
    background: #fff;
    border: 2px solid var(--primary-color);
    transition: 0.4s;
}

#testimonialSlider .head .prev-btn:hover i,
#testimonialSlider .head .next-btn:hover i {
    color: var(--primary-color);
}

#testimonialSlider .slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

#testimonialSlider .boxes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

#testimonialSlider .boxes .box {
    width: 32%;
    height: 460px;
    border-radius: 20px;
    background: #FFFFFF;
    flex-shrink: 0;
}

#testimonialSlider .boxes .box .top {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background: #ADACAC;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

#testimonialSlider .boxes .box .details {
    margin-top: -80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#testimonialSlider .boxes .box .details img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

#testimonialSlider .boxes .box .details h6 {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-top: 10px;
}

#testimonialSlider .boxes .box .details p {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    text-align: center;
}

#testimonialSlider .boxes .box .ratings {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 20px 0;
}

#testimonialSlider .boxes .box .ratings i {
    color: goldenrod;
}

#testimonialSlider .boxes .box .description {
    padding: 0 20px;
}

#testimonialSlider .boxes .box .description p {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 991px) {

    #testimonialSlider .head .prev-btn,
    #testimonialSlider .head .next-btn {
        height: 35px;
        width: 35px;
    }

    #testimonialSlider .boxes {
        flex-direction: row;
        gap: 20px;
    }

    #testimonialSlider .boxes .box {
        width: 100%;
    }
}

@media (max-width: 991px) {
    #testimonialSlider .boxes .box {
        width: 100%;
        flex: 0 0 100%;
    }

    #testimonialSlider .boxes {
        gap: 20px;
    }
}


/* Contact us  */
.contact-us {
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/cnt-bg.png') no-repeat center center;
    background-size: cover;
    padding: 500px 50px 50px 50px;
    text-align: center;
    margin-top: -500px;
}

.contact-form .get-connected {
    margin-bottom: 10px;
    background: #fff;
    padding: 10px 0;
}

.contact-form .get-connected h3 {
    font-weight: 900;
    font-size: 40px;
    text-align: center;
    text-transform: capitalize;
    color: #000;
    margin: 0;
}

.input-fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.input-field {
    padding: 10px 20px;
    font-size: 16px;
    color: #000;
    width: 48%;
    /* two fields side by side */
    box-sizing: border-box;
    margin-bottom: 10px;

    &:focus {
        outline: none;
        border: 2px solid var(--primary-color);
    }
}

.input-field[type="email"],
.input-field[type="text"],
.input-field[type="tel"],
textarea {
    border: none;
    border: 2px solid #fff;
    border-radius: 5px;

    &:focus {
        outline: none;
        border: 2px solid var(--primary-color);
    }
}

textarea.input-field {
    width: 100%;
    height: 150px;
    resize: vertical;
}

.contact-form .submit-btn {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form .submit-btn:hover {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}


/* Responsive tweaks */
@media (max-width: 768px) {
    .input-field {
        width: 100%;
    }
}


/* footer  */

footer {
    background: #E5E5E5;
    padding: 50px;
    margin-bottom: 3px;

    .footer-content {
        display: flex;
        justify-content: space-between;

        .left-main {
            width: 60%;
            display: flex;
            justify-content: space-between;

            .footer-logo {
                width: 50%;

                h3 {
                    font-size: 30px;
                    font-weight: 600;
                    color: #000;
                }

                p {
                    font-size: 14px;
                    font-weight: 400;
                    color: #000;
                }

                .socials {
                    margin-top: 20px;

                    ul {
                        display: flex;
                        align-items: center;
                        gap: 10px;
                        padding: 0;

                        li {
                            list-style: none;
                            height: 28px;
                            width: 28px;
                            background: var(--primary-color);
                            border: 1px solid var(--primary-color);
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            border-radius: 50%;
                            transition: 0.3s;

                            i {
                                font-size: 15px;
                                color: #fff;
                                transition: 0.4s;
                            }

                            &:hover {
                                background: transparent;
                                border: 1px solid var(--primary-color);

                                i {
                                    color: var(--primary-color);
                                }
                            }
                        }
                    }
                }
            }

            .footer-links {
                width: 50%;
                display: flex;
                justify-content: space-between;
                gap: 10px;

                .link {
                    width: 50%;
                    display: flex;
                    flex-direction: column;

                    h6 {
                        font-size: 18px;
                        font-weight: 500;
                        color: #000;
                    }

                    ul {
                        padding: 0;

                        li {
                            list-style: none;

                            a {
                                text-decoration: none;
                                font-size: 16px;
                                font-weight: 400;
                                color: #000;
                                transition: 0.4s;

                                &:hover {
                                    color: var(--primary-color);
                                }
                            }
                        }
                    }
                }
            }
        }

        .right-main {
            width: 40%;

            h3 {
                font-size: 18px;
                font-weight: 600;
                color: #000;
            }

            p {
                font-size: 16px;
                font-weight: 400;
                color: #000;
            }

            .forms-main {
                .input-field {
                    background: #ffffff;
                    border-radius: 60px;
                    display: flex;
                    padding: 0 5px;
                    justify-content: space-between;
                    align-items: center;
                    width: 100%;

                    input[type="email"] {
                        width: 70%;
                        padding: 10px;
                        border: none;
                        outline: none;
                        border-radius: 60px;
                    }

                    input[type="submit"] {
                        width: 30%;
                        background: var(--primary-color);
                        border: 2px solid var(--primary-color);
                        border-radius: 60px;
                        padding: 5px 10px;
                        border: none;
                        outline: none;
                        font-size: 14px;
                        font-weight: 400;
                        color: #fff;

                        &:hover {
                            background: transparent;
                            color: var(--primary-color);
                            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
                            cursor: pointer;
                        }
                    }
                }
            }

            .checks {
                .input-field {
                    margin: 10px 0;
                    display: flex;
                    align-items: start;

                    input[type="checkbox"] {
                        margin: 0 5px;
                    }

                    span {
                        font-size: 14px;
                        color: #000;
                        text-wrap: nowrap;
                    }
                }
            }

            a {
                text-decoration: none;
                color: #000;
                font-size: 14px;

                &:hover {
                    color: var(--primary-color);
                }
            }
        }
    }

    @media (max-width: 991px) {
        padding: 20px;

        .footer-content {
            flex-direction: column;

            .left-main {
                width: 100%;
                flex-direction: column;

                .footer-logo {
                    width: 100%;
                }

                .footer-links {
                    width: 100%;
                    flex-direction: column;
                }
            }

            .right-main {
                width: 100%;

                .forms-main {
                    .input-field {
                        width: 100%;

                        input[type="submit"] {
                            font-size: 10px;
                        }
                    }
                }
            }
        }
    }
}

.sub-footer {
    background: var(--primary-color);
    padding: 10px 0;

    p {
        font-size: 18px;
        color: #fff;
        font-weight: 400;
        text-align: center;
        margin: 0;
    }
}

.goto-top-main {
    position: fixed;
    bottom: 90px;
    right: 10px;
    z-index: 1000;
    display: none;

    .goto-top {
        padding: 10px 0;
        background: var(--primary-color);
        position: absolute;
        right: 0;

        display: flex;
        justify-content: center;
        align-items: center;
        height: 64px;
        width: 64px;
        text-decoration: none;

        i {
            font-size: 20px;
            color: #fff;
        }
    }

    @media (max-width: 991px) {
        .goto-top {
            height: 50px;
            width: 50px;
        }
    }
}