/********** Template CSS **********/

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 15px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 100px;
    padding-bottom: 10px;
    background: url(../img/hero-bg.jpg) top center no-repeat;
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}



/*** About 1 ***/
.about-img {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-img::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;   /* this replaces width/height to avoid overflow */
    background: url("../img/bg-about-img.png") no-repeat center;
    background-size: cover;
    pointer-events: none;
}



/* --- Mobile Fix --- */
/* --- Mobile Fix --- */
@media (max-width: 768px) {
  
/* Safety net: prevent horizontal scroll everywhere */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
h4.responsive-heading {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.75rem);
  line-height: 1.4;
  margin-left: 0;       /* reset if needed */
  margin-right: 0;      /* optional */
  padding-left: 15px;   /* adjust to container */
  padding-right: 15px;
  box-sizing: border-box;
}


}

/* --- Mobile Fix --- */
@media (max-width: 768px) {
  .about-img {
    width: 100%;           /* full width of container */
    height: 100px;         /* smaller height */
    max-height: 100px;     /* ensure it doesn’t overflow */
    overflow: hidden;      /* crop anything extra */
    border-radius: 6px;    /* optional */
  }

  /* If the actual image is an <img> inside */
  .about-img img {
    width: 100%;
    height: 100%;          /* fill the container height */
    object-fit: cover;     /* crop nicely */
  }

  /* Pseudo-element overlay */
  .about-img::after {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;  /* keep it filling container */
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* About section heading padding responsive */
@media (max-width: 768px) {
    .col-6 .text-center.bg-primary {
        padding-left: 0.5rem;   /* smaller padding on mobile */
        padding-right: 0.5rem;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .responsive-heading {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem); /* keep heading readable */
        line-height: 1.3;
    }
}

/* --- About Section --- */
.about-section .col-6 {
    display: flex;
    flex-direction: column; /* stack image + text vertically */
}

/* Images inside columns */
.about-section .col-6 img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 6px; /* optional rounded corners */
}

/* Text box under images */
.about-section .col-6 .text-center.bg-primary {
    margin-top: auto; /* push text box to bottom of column */
    width: 100%;
    padding: 0.5rem 1rem; /* desktop padding */
}

/* Heading inside text box */
.responsive-heading {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.75rem); /* responsive font */
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

/* === Mobile Styles === */
@media (max-width: 768px) {
    .about-section .col-6 img {
        max-height: 120px; /* smaller images on mobile */
        object-fit: cover;
    }

    .about-section .col-6 .text-center.bg-primary {
        padding: 0.25rem 0.5rem; /* smaller padding on mobile */
    }

    .responsive-heading {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        line-height: 1.3;
    }

    /* Prevent horizontal scroll */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}









/*** Project ***/
.project-item img {
    transition: .5s;
}
  
.project-item:hover img {
    transform: scale(1.2);
}
  
.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}
.project-thumb {
  object-fit: cover;
  height: 250px;   /* Adjust as you like */
}


  /*----------------------
    project section 2 start
    -------------------------*/

    

















      .our {
            text-align: center;
            margin-top: 50px;
            margin-bottom: 3px;
        }

      .gallery .images .img {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gallery .images .img {
  position: relative;
  overflow: hidden;

  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Slight zoom on hover */
.gallery .images .img:hover {
  transform: scale(1.05);
}

/* Overlay effect */
.gallery .images .img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

/* Circle with + icon */
.gallery .images .img::before {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background:#198754; /* Rust color */
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

/* Hover effect */
.gallery .images .img:hover::after,
.gallery .images .img:hover::before {
  opacity: 1;
}

.gallery .images .img:hover::before {
  transform: translate(-50%, -50%) scale(1.1); /* slight pop */
}

        .gallery .images img {
            width: 100%;
            height: auto; /* Maintain aspect ratio */
            transition: transform 0.2s ease;
        }
        .gallery .images .img:hover {
            transform: scale(1.05); /* Slightly enlarge on hover */
        }

        /* Image lightbox styling */
     /* Replace existing .lightbox block with this */
.lightbox {
  position: fixed !important;
  inset: 0 !important;            /* top:0; right:0; bottom:0; left:0 */
  width: 100vw;
  height: 100vh;
  z-index: 2147483647 !important; /* very high so it sits above banners/navbars */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Wrapper centered & responsive inside the overlay */
.lightbox .wrapper {
  max-width: 90%;
  max-height: 85%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding: 8px;
}

 /* Lightbox image should keep its natural proportions */
.lightbox .wrapper img {
  max-width: 100%;      /* fit inside wrapper horizontally */
  max-height: 85vh;     /* fit inside viewport vertically */
  width: auto;          /* don't stretch */
  height: auto;         /* keep aspect ratio */
  object-fit: contain;  /* show the whole image without cropping */
  display: block;
  margin: 0 auto;
}


        .lightbox .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  font-weight: bold;
  color:#198754; /* Rust color */
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.lightbox .close:hover {
  color: #ff6347; /* lighter rust/red on hover */
  transform: scale(1.2);
}

        .images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; /* handles spacing only */
  list-style: none;
  padding: 0;
  margin: 0;
}

.images .img {
  overflow: hidden;
  border-radius: 6px;
}

/* Default (no class) → auto height */
.images .img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

/* 1. Wide-style crop (landscape) */
.images .img.wide img {
  height: 300px;
}

/* 2. Tall-style crop (portrait) */
.images .img.tall img {
  height: 300px;
}
.images .img.management img {
  height: 300px;
}
.images .img.marketing img {
  height: 300px;
}

.images .img.ebooks img {
  height: 300px;
}


/* 3. Banner-style crop (panoramic) */
.images .img.banner img {
  height: 300px;       /* was 120px → a little taller */
 
}

.filter-buttons {
  text-align: center;
  margin: 10px 0;
}
.filter-buttons button {
  background: #343a40;
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
.filter-buttons button:hover,
.filter-buttons button.active {
  background: #198754; /* highlight color */
}

/* Default desktop grid stays same */
.images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  /* Filter buttons scroll horizontally */
  .filter-buttons {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* hide scrollbar (Firefox) */
  }
  .filter-buttons::-webkit-scrollbar {
    display: none; /* hide scrollbar (Chrome/Safari) */
  }
  .filter-buttons button {
    flex: 0 0 auto; /* don’t shrink */
    margin: 5px;
  }
}
  /* Images behave like normal grid (no horizontal scroll) */
/* Images grid */
.images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;         /* no space between images */
  list-style: none;
  padding: 0;     /* remove extra padding */
  margin: 0;      /* remove extra margin */
}

/* Individual image cards */
.images .img {
  overflow: hidden;
  border-radius: 0;  /* optional: remove rounded corners if you want perfect edge-to-edge */
  margin: 0;         /* no extra margin */
}

/* Images inside cards */
.images .img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0;         /* ensure no margin */
  border-radius: 0;  /* optional: match .img if you removed border-radius */
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .images {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0;        /* no spacing for mobile */
  }

  .images .img img {
    height: 180px;  /* uniform height on mobile */
    margin: 0;      /* no margin */
  }
}

/* Mobile-friendly hover effect */
/* Mobile hover + icon and overlay */
@media (max-width: 768px) {
  /* Always show overlay */
  .gallery .images .img::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.2); /* subtle dark overlay */
      border-radius: 8px;
      opacity: 1; /* always visible */
      transition: background 0.3s ease;
  }

  /* Always show + icon */
  .gallery .images .img::before {
      content: "+";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #b7410e; /* Rust color */
      color: #fff;
      font-size: 1.8rem;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 1; /* always visible */
      transition: transform 0.3s ease;
      z-index: 2;
  }

  /* Slight pop effect on tap */
  .gallery .images .img:active::before {
      transform: translate(-50%, -50%) scale(1.1);
  }

  /* Soft fade effect on overlay when tapping */
  .gallery .images .img:active::after {
      background: rgba(0,0,0,0.3);
  }
}

/* Default desktop / large screens */
.lightbox .wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
}

/* Image inside lightbox */
.lightbox .wrapper img {
  width: 100%;
  height: auto;  /* let it keep its ratio */
  display: block;
  border-radius: 6px;
  object-fit: contain; /* ensures full image is visible */
}


/* === Responsive Mobile Fix === */
/* === Lightbox Mobile Responsiveness === */
@media (max-width: 768px) {
  .lightbox .wrapper {
    width: 90%;           /* wrapper fills most of screen */
    height: auto;          /* height adjusts to image */
    max-height: 80vh;      /* never exceed viewport */
    padding: 6px;
  }

  .lightbox .wrapper img {
    width: 100%;           /* image fits wrapper width */
    height: auto;          /* keep original aspect ratio */
    max-height: 80vh;      /* scale down if too tall */
    object-fit: contain;    
    display: block;
    margin: 0 auto;
  }

  .lightbox .close {
    top: 6px;
    right: 6px;
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .lightbox .wrapper {
    width: 95%;           /* almost full width on phones */
    height: auto;
    max-height: 70vh;     /* smaller so it fits screen */
    padding: 4px;
  }

  .lightbox .wrapper img {
    width: 100%;           /* scale image to wrapper */
    height: auto;
    max-height: 70vh;      /* never overflow screen height */
    object-fit: contain;
  }

  .lightbox .close {
    top: 4px;
    right: 4px;
    font-size: 1.5rem;
  }
}

/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important;
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.jpg) bottom right no-repeat;
    background-size: cover;
    margin-top: 50px;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer Base ***/
/* ---------------------------
   Footer Responsive Fix
--------------------------- */
.footer {
    background: #0b0b0c;
    color: rgba(255,255,255,0.85);
    font-family: "Open Sans", sans-serif;
    overflow-x: hidden; /* prevent horizontal scroll */
    padding: 40px 15px; 
    box-sizing: border-box;
}

.footer, .footer * {
    box-sizing: border-box;
    word-break: break-word;
}

/* Footer columns */
.footer .row {
    display: flex;
    flex-wrap: wrap; /* stack on small screens */
    margin: 0 -10px; /* negate container padding for spacing */
}

.footer .col-md-6, .footer .col-lg-3 {
    padding: 0 10px;
    margin-bottom: 20px; /* spacing between stacked columns */
}

/* Footer heading */
.footer h5 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

/* Footer links */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    font-size: 16px; /* increased */
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    white-space: normal;
    transition: 0.3s;
}

.footer .btn.btn-link:hover {
    color: #71b100; /* your theme color */
}

/* Pseudo icon before link */
.footer .btn.btn-link::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 6px;
    color: rgba(255,255,255,0.4);
}

/* Social buttons */
.footer .social a {
    display: inline-flex;
    margin-right: 8px;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px;
    border-radius: 4px;
    transition: 0.3s;
}

.footer .social a:last-child { margin-right: 0; }

.footer .social a:hover {
    background: #71b100;
    border-color: #71b100;
    color: #fff;
}

/* Copyright */
.footer .copyright {
    padding: 15px 0;
    font-size: 14px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer menu links horizontal */
.footer .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.footer .footer-menu a {
    margin: 5px 10px;
    padding: 0;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    border-right: 1px solid rgba(255,255,255,0.2);
}

.footer .footer-menu a:last-child {
    border-right: none;
}

/* ---------------------------
   Responsive Mobile Fix
--------------------------- */
@media (max-width: 991px) {
    .footer .col-md-6, .footer .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .footer .col-md-6, .footer .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .footer .footer-menu {
        flex-direction: column;
        align-items: center;
    }

    .footer .footer-menu a {
        margin: 5px 0;
        border-right: none;
    }
}
/* Container spacing fix */
.footer .container {
    max-width: 1200px;
    padding: 0 20px; /* reduce horizontal padding */
}

/* Footer columns */
.footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* reduce large gaps */
}

/* Column text & headings */
.footer h1, .footer h5 {
    margin-bottom: 15px;
}

.footer h1 {
    font-size: 28px; /* bigger and balanced */
}

.footer h5 {
    font-size: 18px;
    color: #fff;
}

/* Paragraph text */
.footer p {
    font-size: 16px; /* increase readability */
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

/* Footer links */
.footer .btn.btn-link {
    font-size: 16px; /* increased */
    margin-bottom: 8px;
}

/* Social icons */
.footer .social a {
    font-size: 18px;
    padding: 10px;
}

/* Responsive tweak for small screens */
@media (max-width: 768px) {
    .footer .col-md-6, .footer .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }

    .footer .social {
        justify-content: center;
    }

    .footer .footer-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* === About Us Area 2 === */
.aboutus-area {
  padding: 10px 0;
  box-sizing: border-box;
}
.aboutus-area * {
  box-sizing: inherit;
}

/* About us image */
.aboutus-image {
  max-width: 480px;
  width: 100%;
  margin: 0 auto 30px;
}
.aboutus-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* About Us Content */
.aboutus-content h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 40px;
  margin-bottom: 2px;
}
.aboutus-content h2 span { color: #71b100; }
.aboutus-content h4 {
  font-size: 18px;
  font-weight: 500;
  color: #9b9b9b;
  margin-bottom: 23px;
}
.aboutus-content p {
  font-size: 16px;
  line-height: 27px;
}
@media (max-width: 479px) {
  .aboutus-content h2 {
    font-size: 30px;
    line-height: 30px;
  }
}

/* Counter layout */
.counter {
  display: flex;
  flex-wrap: wrap;
  margin-top: 32px;
  gap: 15px;
}
.single-counter {
  flex: 0 0 25%;  /* 4 per row desktop */
  min-width: 150px;
  padding: 20px;
  text-align: center;
}
.single-counter h2 {
  font-size: 30px;
  color: #71b100;
  margin-bottom: 8px;
  line-height: 1.2;
  font-family: "Open Sans", sans-serif;
}
.single-counter p {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #8f8f8f;
}

/* Responsive breakpoints */
@media (max-width: 991px) {
  .single-counter { flex: 0 0 33.333%; } /* 3 per row */
}
@media (max-width: 767px) {
  .aboutus-image { margin-bottom: 30px; } /* stacked layout */
  .single-counter { flex: 0 0 50%; }      /* 2 per row */
}
@media (max-width: 480px) {
  .single-counter { flex: 0 0 100%; }     /* stack */
}
/*=============
abouit us end
================*/

/*===================
ecommerce card start 
=================*/
         .product_view .modal-dialog {
            max-width: 500px; 
            width: 90%; /* Responsive width */
            margin: 20px auto;
        }
        .pre-cost {
            text-decoration: line-through; 
            color: #a5a5a5;
        }
        .space-ten {
            padding: 10px 0;
        }
        
        /* Fixed padding for images in modals */
        .modal-body .product-image {
            padding: 10px; /* Fixed padding around image */
            background: #f8f9fa; /* Light background for padding area */
            border-radius: 8px;
            margin: 0 auto 20px;
            display: block;
            max-width: 100%;
            height: auto;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        /* Base responsive adjustments */
        .thumbnail {
            border: none;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        .thumbnail:hover {
            transform: translateY(-5px);
        }
        .btn-ground .btn {
            min-width: 120px;
        }
        
        /* Modal close button */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4c4c; /* red-ish background */
    border: none;
    color: #fff;
    font-size: 1.3rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #e03e3e;
}

/* Optional: Adjust modal header padding */
.modal-header {
    padding: 15px 50px 15px 15px; /* leave space for cross button */
}



        /* Large Screens (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    .modal-dialog {
        max-width: 900px;
    }
    .product-image {
        max-width: 500px;
        padding: 20px;
    }
    .card-body h5 {
        font-size: 1.4rem;
    }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    .modal-dialog {
        max-width: 800px;
    }
    .product-image {
        max-width: 400px;
        padding: 18px;
    }
    .card-img-top {
        height: 250px;
        object-fit: cover;
    }
    .card-body h5 {
        font-size: 1.3rem;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    .col-md-4 {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    .modal-dialog {
        max-width: 700px;
        width: 95%;
    }
    .product-image {
        max-width: 350px;
        padding: 15px;
    }
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    .card-body h5 {
        font-size: 1.25rem;
    }
    .card-body p {
        font-size: 0.95rem;
    }
    .card-img-top {
        height: 220px;
        object-fit: cover;
    }
    .modal-title {
        font-size: 1.6rem;
        text-align: center;
    }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }
    .col-md-4 {
        padding: 0 5px;
        margin-bottom: 20px;
    }
    .modal-dialog {
        width: 98%;
        margin: 5px auto;
    }
    .product-image {
        max-width: 100%;
        padding: 10px;
    }
    .card-body h5 {
        font-size: 1.2rem;
    }
    .card-body p {
        font-size: 0.9rem;
    }
    .card-img-top {
        height: 180px;
        object-fit: cover;
    }
    .modal-title {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 10px;
    }
    .modal-body h6 {
        font-size: 1.3rem;
    }
    .modal-body p {
        font-size: 1rem;
        line-height: 1.5;
    }
    .close {
        font-size: 2rem;
    }
}

/* Small Mobile (up to 479px) */
@media (max-width: 479px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .col-md-4 {
        padding-left: 5px;
        padding-right: 5px;
        margin: 0 5px 15px 5px; /* left/right margin for breathing space, bottom margin for spacing */
        width: calc(100% - 10px); /* full width minus left/right margin */
        box-sizing: border-box; /* ensures padding/margin don't break width */
    }

    .product-image {
        padding: 5px;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .card-img-top {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .card-body h5 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .card-body p {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .modal-dialog {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .modal-content {
        border-radius: 0;
    }

    .modal-body {
        padding: 15px;
    }
}



/*===================
ecommerce card end 
=================*/        