* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.icon-primary {
   color: var(--primary-color);
}

:root {
  /* Global Colors */
  --primary-color: #294259;
  --secondary-color: #aacb35;
  --hover-color: #38aba9;

  /* Global Fonts */
  --font-primary: "Brygada 1918", serif;
  --font-secondary: "Open Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
}


h1 {
  font-size: clamp(1.5rem, 1.4rem + 0.6vw, 2.1rem);
  line-height: clamp(2.1rem, 1.9rem + 1vw, 3.2rem);
}

h2 {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.7rem);
  line-height: clamp(1.6rem, 1.4rem + 0.8vw, 2.4rem);
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.45rem);  
  line-height: clamp(1.5rem, 1.3rem + 0.6vw, 2rem);
}

h4 {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.25rem); 
  line-height: clamp(1.3rem, 1.2rem + 0.5vw, 1.7rem);
}

h5 {
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1.1rem); 
  line-height: clamp(1.2rem, 1rem + 0.4vw, 1.5rem);
}

h6 {
  font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.95rem); 
  line-height: clamp(1rem, 0.9rem + 0.3vw, 1.3rem);
}

.custom-header {
    background: var(--secondary-color);
    padding: 0 10px;
    padding: 16px;
}

.header a {
    color: white;
    text-decoration: none;
    padding: 0 10px;
    border-right: 2px solid #fff;
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 18px;
}

.header a:last-child {
    border-right: none;
}

.header a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

p {
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.phone-text {
  font-weight: bold;
  color: black  ;
  font-family: var(--font-secondary);
}

.whatsapp-icon {
    color: #38761d; 
    font-size: 19px;
    transition: color 0.3s ease;
}

.d-lg-flex a:hover .whatsapp-icon {
    color: #6aa84f; 
}

/* --- Base Styling for All Nav Links --- */
.navbar .nav-link {
    color: var(--primary-color) !important; 
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    transition: color 0.3s ease, font-weight 0.3s ease;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* --- Active and Hover States --- */
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: black !important; 
    font-family: var(--font-secondary);
}

/*first panel*/

.first-panel .container h1{
color: white; 
font-family: var(--font-secondary);
margin-top: 5px;
font-size: 26px;
}

.first-panel{
   background-image: url(assets/images/pannel-bg.png);
   /* Centering the image */
  background-position: center;

  /* Preventing the image from repeating */
  background-repeat: no-repeat;

  /* Scaling the image to cover the entire area */
  background-size: cover;

  /* Optional: Ensure the section has height to show the image */
  min-height: 50vh;
}

.first-panel .container h5{
color: white; 
font-family: var(--font-secondary);
}

.first-panel p {
   font-size: 16px;
   color: #ffffff;
   font-family: var(--font-secondary);
   line-height: 1.5;
}

.img-fluid {
    /* Ensures the image scales down on smaller screens */
    max-width: 100%; 
    height: auto; 
}

.custom-max-width {
    /* *** CHANGE THIS VALUE TO MAKE IT SMALLER *** */
    max-width: 250px; /* Example: Changed from 400px to 250px */
    
    /* Center the image */
    display: block;
    margin: 0 auto;
}

/* --- PRIMARY BUTTON (Get a Quote: Filled Green) --- */
.custom-btn-primary {
    background-color: var(--secondary-color); /* Custom Green */
    border-color: var(--secondary-color);
    color: white;
    font-family: var(--font-secondary);
}

.custom-btn-primary:hover {
    background-color: var(--secondary-color); /* Darker green on hover */
    border-color: var(--secondary-color);
    color: white;
}

/* --- OUTLINE BUTTON (Contact Us: Outline Dark Blue) --- */
.custom-btn-outline {
    background-color: transparent; 
    border-color: white; /* Custom Dark Blue/Gray border */
    color: white; /* Custom Dark Blue/Gray text */
    font-family: var(--font-secondary);
}

.custom-btn-outline-cockroach {
    background-color: transparent; 
    border-color: var(--secondary-color); /* Custom Dark Blue/Gray border */
    color: var(--secondary-color); /* Custom Dark Blue/Gray text */
    font-family: var(--font-secondary);
}

.custom-btn-outline-cockroach:hover {
    background-color: var(--secondary-color); /* Fill background on hover */
    border-color: var(--secondary-color);
    color: white; /* White text on hover for contrast */
}

.custom-btn-outline:hover {
    background-color: var(--hover-color); /* Fill background on hover */
    border-color: var(--hover-color);
    color: white; /* White text on hover for contrast */
}

/*certification section start*/
.card-img-top {
    width: 100%;
    /* Adjust this value to control the width */
    height: 150px;
}

/*contact form css start*/
.card {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.card-img-top {
    border-radius: 15px 15px 0 0;
}

.second-panel {
    /* Step 1: Pull the section up (Overlap) */
    margin-top: -50px; /* Use a fixed pixel value, or try -5% to -10% if you know the first panel's height */
    /* Step 2: Ensure the content of this panel sits ON TOP of the previous panel */
    position: relative;
    z-index: 2;
}

/*Services Section start*/
.mycard-ants-cont {
    padding: 20px 0;
    
}

.pad0 {
    padding: 0;
}

.control-pest {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    height: 100%;
    transition: box-shadow 0.3s ease, border-radius 0.3s ease;
    /* Ensure all cards have equal height */
    display: flex;
    flex-direction: column;
    font-family: var(--font-secondary);
}

.control-pest:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: var(--primary-color);
    border-radius: 16px;
    /* Change background color on hover */
}

.cntr-p {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    /* Center image horizontally */
}

.cntr-p img {
    width: 64px;
    /* Ensure consistent image size */
    height: 64px;
    display: block;
    border: 2px solid var(--secondary-color);
    /* Square border directly on the image */
    border-radius: 8px;
    /* Rounded corners for the square border */
    transition: transform 0.3s ease;
    /* Example of transition */
}

.cntr-p img:hover {
    transform: scale(1.1);
    /* Example of hover effect */
}

.cntr-4,
.ensurep {
    margin: 0;
    /* Remove margin for heading and paragraph */
    color: black;
    /* Default text color */
}



.control-pest a,
.ensurep a {
    text-decoration: none;
    /* Remove underline from links within cntr-4 and ensurep */
    color: inherit;
    /* Inherit text color from parent */
}

.divider-2 {
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

.ensurep {
    font-size: 16px;
    text-align: justify;
    line-height: 21px;
    
}

.ensureps {
    font-size: 18px;
    text-align: justify;
    line-height: 21px;
    
}
.readMorep {
    color: black;
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    text-decoration: none;
    /* Remove underline by default */
    transition: color 0.3s ease;
    /* Smooth transition for color */
}

.readMorep:hover {
    color: white;
    /* Change text color to white on hover */
    text-decoration: underline;
    /* Underline text on hover */
    cursor: pointer;
    /* Change cursor to pointer on hover (optional) */
}


.control-pest:hover .cntr-4,
.control-pest:hover .ensurep,
.control-pest:hover .readMorep {
    color: #fff;
    /* Change text color to white on hover */
}


.area-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.area-card:hover {
    transform: translateY(-10px);
}

.area-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.area-card:hover .area-img {
    transform: scale(1.1);
}

.area-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    text-align: center;
}

.area-overlay h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.area-overlay p {
    color: #f0f0f0;
    margin-bottom: 10px;
}

.btn-custom {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-custom:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.card-body .mt-4 .btn{
    background: var(--primary-color);
    color: #ffffff;
}

.card-body .mt-4 .btn:hover{
    background-color: var(--secondary-color);
    color: #ffffff;
}

/*Services Section end*/

/*Get a qout form start*/

/* Custom Submit Button Style */


div.d-lg-none .btn.btn-primary {
    background-color: #294259 !important;
    border-color: #294259 !important;
    color: #ffffff !important;
}

.btn-primary-custom {
    background: linear-gradient(90deg, #294259, #3a5a78);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;   /* smaller text */
    padding: 8px 16px;   /* reduced size */
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(41, 66, 89, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(90deg, #3a5a78, #294259); /* reverse gradient on hover */
    transform: translateY(-3px); /* lift effect */
    box-shadow: 0 8px 20px rgba(41, 66, 89, 0.4); /* stronger shadow */
    color: #ffffff;
}

.btn-primary-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 66, 89, 0.3); /* focus ring */
}

/*Get a qout from end */
/* Accordion start */
.accordion-button {
    background-color: #f8f9fa; /* default button background */
    color: #000 !important; /* default text color */
    font-size: 20px;
    font-family: var(--font-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color); /* open background */
    color: #ffffff !important; /* open text */
    font-family: var(--font-primary);
}

/* Arrow icon */
.accordion-button::after {
    filter: invert(0); /* black arrow when closed */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1); /* white arrow when open */
}

/* Remove focus outline */
.accordion-button:focus {
    box-shadow: none;
}

/* Accordion body */
.accordion-body {
    font-family: var(--font-primary);
    font-size: 19px;
}
/* Accordion end */

/*tablayout*/

.modern-pills .nav-link {
    padding: 12px 25px;
    border-radius: 50px;
    background: #f1f3f5;
    margin: 0 8px;
    font-weight: 600;
    color: var(--primary-color);
    transition: 0.3s;
}

.modern-pills .nav-link:hover {
    background: #e0e6ea;
}

.modern-pills .nav-link.active {
    background: var(--primary-color);
    color: #fff;
}

/*tablayout*/

/*footer*/

.footer {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 15px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    color: #d6e4ef;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact-item img {
    width: 40px;
}

.footer-contact-item a {
    display: flex;
    flex-direction: column;
}


.footer-desc {
    line-height: 1.7;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.footer-menu li {
    font-size: 15px;
    font-family: var(--font-secondary);
}

.footer-menu li a::before {
    content: "›";
    margin-right: 6px;
    color: white;
    font-size: 26px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact-list img {
    width: 20px;
}

.footer-social img {
    width: 22px;
    margin-right: 10px;
}

.floating-contact-wrap {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-icon img {
    width: 55px;
    height: 55px;
    display: block;
    transition: transform 0.3s ease;
}

/* Continuous Pulse Animation */
.floating-icon {
    animation: pulse-animation 2s infinite;
    border-radius: 50%;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); /* Primary blue for call */
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(13, 110, 253, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Custom shadow color for WhatsApp Pulse */
.whatsapp-btn {
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); /* WhatsApp green */
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-icon:hover {
    animation: none; /* Stops animation on hover */
    transform: scale(1.1);
}

.footer h6 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer h6::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px;          /* line length */
    height: 1px;          /* line thickness */
    background-color: #d1d1d1; /* accent color */
    border-radius: 2px;
}

.footer-logo {
    text-decoration: none;
    color: #ffffff;
}

.footer-logo img {
    max-width: 60px; /* logo size */
    height: auto;
}

.footer-company-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.footer-desc {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    font-family: var(--font-secondary);
}

.address-icon {
    font-size: 20px;
    color: #ffffff; /* change as per your theme */
}

.img-zoom-container {
    position: relative;
}

.img-zoom-result {
    border: 1px solid #ccc;
    width: 400px;          /* Zoom window width */
    height: 400px;         /* Zoom window height */
    position: absolute;
    top: 0;
    left: 105%;            /* Show beside the image */
    overflow: hidden;
    display: none;         /* Hidden initially */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background-repeat: no-repeat;
    z-index: 10;
}


.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.service-card img {
  height: 150px;
  object-fit: cover;
  font-family: var(--font-primary);
}


