
/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
 }

 #spinner.show {
     transition: opacity .8s ease-out, visibility 0s linear .0s;
     visibility: visible;
     opacity: 1;
 }

/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.btn {
    text-transform: uppercase;
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    box-shadow: inset 0 0 0 0 var(--bs-dark);
}

.btn.btn-primary:hover {
    box-shadow: inset 200px 0 0 0 var(--bs-dark) !important;
    color: #fff !important;
}

.btn.btn-dark {
    box-shadow: inset 0 0 0 0 var(--bs-primary);
}

.btn.btn-dark:hover {
    box-shadow: inset 200px 0 0 0 var(--bs-primary);
    color: var(--bs-dark) !important;
}




/*** Navbar Start ***/
.navbar .navbar-nav {
    padding: 15px 0;
}

.navbar .navbar-nav .nav-link {
    padding: 15px;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active  {
    color: #4582ec;
    transition: .5s;
}


.navbar-toggler {
    background: var(--bs-secondary);
    color: var(--bs-light) !important;
    padding: 5px 12px;
    border: 2px solid #fff !important;
}



/*** Navbar End ***/



.page-header {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/about-img.jpg) center center no-repeat;
    background-size: cover;
    margin-bottom: 6rem;
}


/*** About Start ***/

.about-img {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 30px 30px 30px 30px ;
    overflow: hidden;
}

.about-img::before {
    content: "";
    width: 100%;
    height: 40%;
    background: var(--bs-dark);
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1;
    border-radius: 10px 10px 10px 10px;
}


.about-img::after {
    content: "";
    width: 100%;
    height: 60%;
    background: var(--bs-primary);
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 1;
    border-radius: 10px 10px 10px 10px;
}

.rotate-left {
    width: 150px;
    height: 100px;
    position: absolute;
    top: 28%;
    left: -10%;
    rotate: 25deg;
    z-index: 2;
}

.rotate-right {
    width: 150px;
    height: 100px;
    position: absolute;
    top: 28%;
    right: -10%;
    rotate: -25deg;
    z-index: 2;
}

.about-img img {
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

.experiences {
    width: 160px;
    height: 200px;
    position: absolute;
    top: -0;
    right: 0;
    padding: 35px 35px;
    text-align: center;
    border-radius: 10px;
    z-index: 3;
    animation: mymove 5s infinite;
    animation-timing-function: ease-in-out;
}

@keyframes mymove {
    from {top: -202px;}
    to {top: 102%;}
}

/*** About End ***/


/*** testimonial Start ***/
.testimonial-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bs-light);
    z-index: 1;
}

.testimonial-content::before {
    content: "";
    width: 50px;
    height: 50px;
    position: absolute;
    left: 50px;
    bottom: -15px;
    rotate: 45deg;
    z-index: -5;
    background: var(--bs-light);
}

.testimonial-carousel {
    position: relative;
    padding-left: 60px;
    padding-right: 60px;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 60px;
    height: 40px;
    background: var(--bs-primary);
    color: var(--bs-dark);
    font-size: 22px;
    top: 14%;
    left: 0px;
    border-radius: 30px 0 0 30px;
    box-shadow: inset 0 0 0 0 var(--bs-dark);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover {
    box-shadow: inset 200px 0 0 0 var(--bs-dark);
    color: var(--bs-primary) !important;
}

.testimonial-carousel .owl-nav .owl-next {
    left: auto;
    right: 0px;
    border-radius: 0 30px 30px 0;
}

.testimonial-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 200px 0 0 0 var(--bs-dark);
    color: var(--bs-primary) !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--bs-secondary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

/*** testimonial End ***/


/*** Contact Start ***/
.contact-link a i,
.contact-link a h5,
.contact-link a.h5 {
    transition: .5s;
}

.contact-link a i:hover,
.contact-link a h5:hover,
.contact-link a.h5:hover {
    color: var(--bs-primary) !important;
}

/*** Contact End ***/




/*** Announcement Banner Start ***/
.announcement-bar {
    background: #0D2B88;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/*** Announcement Banner End ***/


/*** Hotline Bar Start ***/
.hotline-bar {
    background: #E8662A;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-size: 17px;
    font-weight: 600;
}

.hotline-bar a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    font-size: 17px;
}

.hotline-bar a:hover {
    color: #ffd;
}

.hotline-bar .fa-whatsapp {
    color: #25D366;
    font-size: 22px;
    vertical-align: middle;
}

.hotline-bar .fa-phone-alt {
    font-size: 18px;
}

/*** Hotline Bar End ***/


/*** Hero Split Start ***/
.hero-split {
    background: #E8662A;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-split::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.hero-split .hero-text {
    color: #fff;
    padding: 60px 0;
}

.hero-split .hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-split .hero-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

@media (max-width: 992px) {
    .hero-split .hero-text h1 {
        font-size: 2rem;
    }
    .hero-split .hero-text {
        padding: 40px 0 20px;
    }
}

/*** Hero Split End ***/


/*** Pest Grid Start ***/
.pest-grid {
    padding: 60px 0;
}

.pest-grid h2 {
    font-weight: 800;
    margin-bottom: 40px;
}

.pest-img-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    text-decoration: none;
}

.pest-img-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.pest-img-card:hover img {
    transform: scale(1.05);
}

.pest-img-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background .3s;
}

.pest-img-card:hover::after {
    background: rgba(0, 0, 0, 0.55);
}

.pest-img-card span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/*** Pest Grid End ***/


/*** Service Image Cards Start ***/
.service-img-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: .3s;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-img-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.service-img-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-img-card .card-body {
    padding: 20px;
}

.service-img-card h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-img-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/*** Service Image Cards End ***/


/*** New Footer Start ***/
.site-footer {
    background: #E8662A;
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 30px;
}

.site-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
}

.site-footer p {
    font-size: 14px;
    line-height: 1.7;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
    display: block;
    padding: 3px 0;
}

.site-footer a:hover {
    color: #fff;
}

.footer-social a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 8px;
    font-size: 16px;
    transition: .3s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.footer-pest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.footer-pest-grid a {
    display: block;
    padding: 4px 0;
}

.footer-contact-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
}

.footer-contact-inline a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}

/*** Testimonial Avatar ***/
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    font-family: 'Nunito', sans-serif;
    flex-shrink: 0;
}

/*** New Footer End ***/


/*** Navbar Brand Text (replaces H1 for SEO) ***/
.navbar-logo {
    height: 70px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.navbar-brand-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.2;
    color: #0D2B88 !important;
}

.container-fluid.bg-white {
    border-bottom: 1px solid #eee;
}

/*** ========== RESPONSIVE MEDIA QUERIES ========== ***/

/* ---- Tablet & Below (max-width: 991px) ---- */
@media (max-width: 991px) {
    .navbar {
        flex-wrap: nowrap;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        margin-right: 8px;
    }

    .navbar-brand-text {
        font-size: 1.3rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-logo {
        height: 45px;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .display-2 {
        font-size: 2.2rem;
    }

    .testimonial .display-5 {
        width: 100% !important;
    }

    .contact-btn-link {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- Tablet (max-width: 768px) ---- */
@media (max-width: 768px) {
    /* Announcement Bar */
    .announcement-bar {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Hotline Bar */
    .hotline-bar {
        padding: 8px 0;
    }


    /* Hero Section */
    .hero-split {
        min-height: auto;
        padding: 30px 0;
    }

    .hero-split .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-split .hero-text p {
        font-size: 0.95rem;
    }


    /* Pest Grid */
    .pest-grid {
        padding: 40px 0;
    }

    .pest-grid h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .pest-img-card img {
        height: 140px;
    }

    .pest-img-card span {
        font-size: 15px;
    }

    /* About Section */
    .rotate-left,
    .rotate-right {
        display: none;
    }

    .experiences {
        width: 120px;
        height: auto;
        padding: 10px;
    }

    .experiences .display-3 {
        font-size: 2.5rem;
    }

    .about-img {
        padding: 20px;
    }


    /* Testimonial Section */
    .testimonial-carousel {
        padding: 0 10px;
    }

    .owl-nav {
        display: none;
    }

    .testimonial .display-5 {
        width: 100% !important;
        font-size: 1.5rem;
    }

    .testimonial-content p {
        font-size: 0.95rem !important;
    }

    /* Service Page Cards */
    .service-img-card img {
        height: 180px;
    }

    /* Contact Page */
    .contact-btn-link {
        flex-direction: column;
        text-align: center;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 40px 0 !important;
    }

    /* Footer */
    .site-footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .site-footer .col-lg-2,
    .site-footer .col-lg-3,
    .site-footer .col-lg-4 {
        text-align: center;
    }

    .footer-contact-inline {
        justify-content: center;
    }

    /* Contact info "w-50" override */
    .w-50 {
        width: 100% !important;
    }

    /* Google map */
    .gmap_canvas iframe {
        height: 300px !important;
    }
}

/* ---- Mobile (max-width: 576px) ---- */
@media (max-width: 576px) {
    /* Announcement Bar */
    .announcement-bar {
        font-size: 11px;
        padding: 5px 8px;
    }


    /* Navbar Brand */
    .navbar-brand-text {
        font-size: 1rem !important;
    }

    .navbar-logo {
        height: 35px;
    }

    /* Hero Section */
    .hero-split .hero-text h1 {
        font-size: 1.4rem;
    }

    .hero-split .hero-text p {
        font-size: 0.88rem;
    }


    /* Pest Grid */
    .pest-grid h2 {
        font-size: 1.3rem;
    }

    .pest-img-card img {
        height: 110px;
    }

    .pest-img-card span {
        font-size: 13px;
    }

    /* About Section */
    .about-img {
        padding: 15px;
    }

    .experiences {
        width: 100px;
        padding: 8px;
    }

    .experiences .display-3 {
        font-size: 2rem;
    }

    .experiences h6 {
        font-size: 0.7rem;
    }

    /* About icon boxes */
    .about-item .col-3 .p-4 {
        padding: 12px !important;
    }

    .about-item .col-3 i {
        font-size: 1.5rem !important;
    }

    .about-item .col-3 h5 {
        font-size: 0.75rem;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 1.4rem;
    }

    .display-2 {
        font-size: 1.8rem;
    }

    /* Sections reduce padding */
    .container-fluid.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }


    /* Testimonials */
    .testimonial-item .testimonial-content {
        padding: 15px !important;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    /* Contact page */
    .gmap_canvas iframe {
        height: 250px !important;
    }

    /* Footer */
    .site-footer {
        padding: 30px 0 15px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}
