@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/Urbanist/Urbanist-Light.ttf') format('ttf'),
        url('../fonts/Urbanist/Urbanist-Light.woff') format('woff'),
        url('../fonts/Urbanist/Urbanist-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/Urbanist/Urbanist-Regular.ttf') format('ttf'),
        url('../fonts/Urbanist/Urbanist-Regular.woff') format('woff'),
        url('../fonts/Urbanist/Urbanist-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/Urbanist/Urbanist-Medium.ttf') format('ttf'),
        url('../fonts/Urbanist/Urbanist-Medium.woff') format('woff'),
        url('../fonts/Urbanist/Urbanist-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/Urbanist/Urbanist-SemiBold.ttf') format('ttf'),
        url('../fonts/Urbanist/Urbanist-SemiBold.woff') format('woff'),
        url('../fonts/Urbanist/Urbanist-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/Urbanist/Urbanist-Bold.ttf') format('ttf'),
        url('../fonts/Urbanist/Urbanist-Bold.woff') format('woff'),
        url('../fonts/Urbanist/Urbanist-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('ttf'),
        url('../fonts/Poppins/Poppins-Regular.woff') format('woff'),
        url('../fonts/Poppins/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Medium.ttf') format('ttf'),
        url('../fonts/Poppins/Poppins-Medium.woff') format('woff'),
        url('../fonts/Poppins/Poppins-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-SemiBold.ttf') format('ttf'),
        url('../fonts/Poppins/Poppins-SemiBold.woff') format('woff'),
        url('../fonts/Poppins/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Bold.ttf') format('ttf'),
        url('../fonts/Poppins/Poppins-Bold.woff') format('woff'),
        url('../fonts/Poppins/Poppins-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

:root {
    --color-white: #FFFFFF;
    --color-theme: #1A6BA7;
    --color-gray: #4E4E4D;
    --color-green: #3C8643;
}

* {
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1460px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

.big_container {
    max-width: 1640px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

body {
    font-family: 'Urbanist', sans-serif;
}

.btn {
    font-size: 18px;
    font-weight: 500;
    padding: 13px 24px;
    color: var(--color-white);
    background-color: var(--color-theme);
    border: 1px solid var(--color-theme);
    transition: 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 20px;
}

.btn:hover {
    color: var(--color-theme);
    background-color: var(--color-white);
}

input:focus {
    outline: none;
}

.section_title {
    @apply mb-6 sm:mb-10 pb-2 sm:pb-4 border-b border-gray;
}

.section_title h2,
.section_title_text {
    @apply font-semibold text-2xl sm:text-3xl lg:text-4xl;
}

.ourclientTab:not(:last-child)::after {
    @apply content-[''] inline-block w-1 h-1 bg-black rounded-full absolute -right-4 top-1/2 -translate-y-1/2;
}

.newsletter_input input::placeholder {
    color: #ffffff;
}

.swiper {

    .swiper-button-prev,
    .swiper-button-next {
        @apply w-8 h-8 sm:w-10 sm:h-10 lg:w-12 lg:h-12 border border-black rounded-full text-black flex justify-center items-center bg-white transition duration-300 hover:shadow-lg;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        @apply text-sm;
    }

    .swiper-pagination {
        @apply static flex justify-center sm:gap-1 mt-4 sm:mt-10;

        .swiper-pagination-bullet {
            @apply block w-5 h-5 sm:w-6 sm:h-6 border-2 border-transparent opacity-100 p-1 bg-transparent after:content-[''] after:bg-green after:w-full after:h-full after:block after:rounded-full !mx-0;

            &.swiper-pagination-bullet-active {
                @apply border-green;
            }
        }
    }
}

.slick-slider {
    @apply overflow-x-visible px-12 sm:px-14 xl:px-[90px];

    .slick-list {
        @apply overflow-x-hidden -mx-2.5;
    }

    .slick-slide {
        @apply px-2.5;
    }

    .slick-arrow {
        @apply w-8 h-8 sm:w-10 sm:h-10 lg:w-12 lg:h-12 rounded-full !flex justify-center items-center bg-white transition duration-300 hover:shadow-lg;
        border: 1px solid #000000;

        &::before {
            content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='currentColor' d='M9.29 6.71a1 1 0 0 0 0 1.41L13.17 12l-3.88 3.88a1 1 0 1 0 1.41 1.41l4.59-4.59a1 1 0 0 0 0-1.41L10.7 6.7a1 1 0 0 0-1.41 0z'/></svg>");

        }

        &.slick-disabled {
            @apply opacity-25;

            &::before {
                @apply opacity-100;
            }
        }

        &.slick-prev {
            @apply rotate-180 left-2;
        }

        &.slick-next {
            @apply right-2;
        }
    }
}

.underline {
    text-decoration: underline;
}

.align-end {
    align-items: end;
}

/* Header  */
.header_contat_link {
    border-right: 1px solid rgb(255, 255, 255, 0.1);
}

.header_content_right .download_brochure {
    text-wrap: nowrap;
    padding: 13px 15px;
}

.header_search_content {
    box-shadow: 4px 4px 4px 0 #00000024;
}

.nav_link.active {
    border-color: var(--color-green);
}

/* Home page  */
.banner_content {
    backdrop-filter: blur(20px);
}

.banner_content::before {
    content: '';
    display: block;
    height: 278px;
    width: 24px;
    background-color: var(--color-green);
    position: absolute;
    top: 72px;
    left: 0;
    transform: translateX(-50%);
}

.custom-shadow {
    box-shadow: 0px 2px 16px 0px #0000001A;
}

.industries_serve {
    .industries_serve_card {
        @apply shadow-none lg:p-7;

        .card_img {
            @apply max-w-[72px];
        }

        .card_title {
            @apply font-urbanist;
        }
    }
}

.contact_form {
    input {
        @apply bg-white;
    }

    textarea {
        @apply bg-white min-h-[166px];
    }
}

.product_card {
    .card_content {
        @apply px-3 py-5;
    }
}

.quote_form form textarea {
    min-height: 92px;
}

.box-content {
    box-sizing: content-box;
}

.about_intro_section p {
    letter-spacing: 0.2px;
}

.about_intro_section .image_section {
    flex: 0 0 40.846%;
}

.about_intro_section .image_container {
    padding-top: 76.38%;
}

.about_intro_section .image_container img {
    object-position: top;
}

/* homr blog section */
.post_title {
    display: -webkit-box;   
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* service-slider */
.service-slider .slick-arrow{
    top: 50%;
    transform: translateY(-50%) !important;
}
.service-slider .slick-prev{
    left: 0;
}
.service-slider .slick-next{
    right: 0;
}

@media only screen and (min-width: 1024px) {

    .home_about_content p {
        max-width: 550px;
        width: 100%;
    }

    .home_about_section .image_container {
        flex: 0 0 25.353%;
    }

    .home_about_section form .btn-success {
        margin-top: 24px;
    }
}

@media only screen and (max-width:1279px) {
    .banner_content::before {
        top: 40px;
    }
}

@media only screen and (max-width:1023px) {
    .nav_link.active {
        color: var(--color-theme);
        border-color: var(--color-gray);
    }
}

@media only screen and (max-width:639px) {
    .btn {
        font-size: 16px;
        padding: 10px 16px;
        gap: 0px;
    }

    .newsletter_input .btn {
        padding: 6px;
        font-size: 14px;
    }

    .header_content_right .download_brochure {
        font-size: 14px;
        padding: 8px;
    }
}

/* css for blog details page  */

.blog-details .meta-top {
    margin-top: 20px;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
    padding: 0;
    margin: 0;
}

.blog-details .meta-top ul li+li {
    padding-left: 20px;
}

.blog-details .meta-top i {
    font-size: 16px;
    margin-right: 8px;
    line-height: 0;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    font-size: 16px;
    display: inline-block;
    line-height: 1;
}

.blog-details .post-introductory img,
.post-content img {
    max-width: 70%;
    width: 100% !important;
    margin: auto;
    object-fit: cover;
    max-height: 500px;
}

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

    .blog-details .post-introductory img,
    .post-content img {
        max-width: 100%;
    }

}

/*--------------------------------------------------------------
# Comment Form Section
--------------------------------------------------------------*/
.comment-form {
    padding-top: 10px;
}

.comment-form .container {
    padding: 15px;
    /* Adjusted for better spacing */
}

.comment-form form {
    background-color: var(--color-white);
    margin-top: 10px;
    margin-bottom: 30px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-width: 60%;
}

/* .comment-form .row{
    max-width: 50%;
} */

.comment-form form h4 {
    font-weight: bold;
    font-size: 22px;
}

.comment-form form p {
    font-size: 14px;
}

.comment-form form input {
    background-color: var(--color-white);
    color: var(--color-gray);
    border: 1px solid color-mix(in srgb, var(--color-gray), transparent 70%);
    font-size: 14px;
    border-radius: 4px;
    padding: 10px 10px;
    width: 100%;
    /* Ensure full width */
    box-sizing: border-box;
}

.comment-form form input:focus {
    color: var(--color-gray);
    background-color: var(--color-white);
    box-shadow: none;
    border-color: var(--color-theme);
}

.comment-form form input::placeholder {
    color: color-mix(in srgb, var(--color-gray), transparent 50%);
}

.comment-form form textarea {
    background-color: var(--color-white);
    color: var(--color-gray);
    border: 1px solid color-mix(in srgb, var(--color-gray), transparent 70%);
    border-radius: 4px;
    padding: 10px 10px;
    font-size: 14px;
    height: 120px;
    width: 100%;
    /* Ensure full width */
    box-sizing: border-box;
}

.comment-form form textarea:focus {
    color: var(--color-gray);
    box-shadow: none;
    border-color: var(--color-theme);
    background-color: var(--color-white);
}

.comment-form form textarea::placeholder {
    color: color-mix(in srgb, var(--color-gray), transparent 50%);
}

.comment-form form .form-group {
    margin-bottom: 25px;
}

.comment-form form .btn-primary {
    border-radius: 4px;
    padding: 10px 20px;
    border: 0;
    background-color: var(--color-theme);
    color: var(--color-white);
}

.comment-form form .btn-primary:hover {
    color: var(--color-white);
    background-color: color-mix(in srgb, var(--color-theme), transparent 20%);
}

.blog-comments .container {
    gap: 20px;
}

.comment-img {
    max-width: 60px;
    max-height: 60px;
    display: flex;
}

.comment-img img {
    object-fit: cover;
}

@media screen and (max-width: 1024px) {
    .comment-form form {
        padding: 16px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .comment-form form .row {
        max-width: 100%;
    }

}

/* product details page breadcrumb */
.product_breadcrum{
    max-width: 550px;
}
.product_breadcrum h3::after,.product_breadcrum h3::before{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.product_breadcrum h3::before{
    right: calc(100% + 10px);    
}
.product_breadcrum h3::after{
    left: calc(100% + 10px);
}
@media screen and (max-width: 1024px) {
    .product_breadcrum h3::after,.product_breadcrum h3::before{
        display: none;
    }
}