/* Responsive Font and Padding Adjustments */
@media (max-width: 768px) {
  .top-header {
    font-size: 13px;
    padding: 8px 0;
  }

  .top-header .container {
    padding: 0 4%;
  }
}

@media (max-width: 576px) {
  .top-header {
    font-size: 12px;
    text-align: center;
  }

  .top-header .container {
    flex-direction: column;
    gap: 5px;
    padding: 0 3%;
  }

  .top-header p {
    margin: 5px 0;
  }
}

/* Medium Devices (Tablets) */
@media screen and (max-width: 991px) {
  .slide img {
    height: 400px;
  }

  .caption {
    font-size: 18px;
    padding: 12px 20px;
    left: 30px;
    bottom: 25px;
  }

  .prev, .next {
    font-size: 20px;
    padding: 10px;
  }
}
/* hero section---------------------------------------------------------------------------------------- */

/* Small Devices (Phones) */
@media screen and (max-width: 767px) {
  .slide img {
    height: 300px;
  }

  .caption {
    font-size: 16px;
    padding: 10px 15px;
    left: 20px;
    bottom: 20px;
    max-width: 80%;
  }

  .prev, .next {
    font-size: 18px;
    padding: 8px;
  }
}

/* Extra Small Devices (e.g., iPhone SE) */
@media screen and (max-width: 480px) {
  .slide img {
    height: 250px;
  }

  .caption {
    font-size: 14px;
    padding: 8px 12px;
    left: 15px;
    bottom: 15px;
  }

  .prev, .next {
    font-size: 16px;
    padding: 6px;
  }
}

/* happy clients----------------------------------------------------------------------------- */
/* Medium Devices (Tablets, Landscape phones) */
@media screen and (max-width: 991px) {
  .features {
    padding: 30px 60px;
    gap: 15px;
  }

  .feature-box {
    flex: 1 1 45%;
    max-width: 45%;
  }

  .feature-box h3 {
    font-size: 18px;
  }

  .feature-box p {
    font-size: 13px;
  }
}

/* Small Devices (Portrait tablets and large phones) */
@media screen and (max-width: 767px) {
  .features {
    padding: 20px 30px;
    flex-direction: column;
    align-items: center;
  }

  .feature-box {
    max-width: 90%;
  }

  .feature-box h3 {
    font-size: 17px;
  }

  .feature-box p {
    font-size: 13px;
  }

  .feature-box img {
    width: 50px;
  }
}

/* Extra Small Devices (Phones < 480px) */
@media screen and (max-width: 480px) {
  .features {
    padding: 15px 20px;
  }

  .feature-box {
    max-width: 100%;
    padding: 15px;
    border-radius: 30px;
  }

  .feature-box h3 {
    font-size: 16px;
  }

  .feature-box p {
    font-size: 12px;
  }

  .feature-box img {
    width: 45px;
  }
}

/* about section home  */
/* Medium Devices (Tablets) */
@media screen and (max-width: 991px) {
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about-text {
    width: 100%;
    padding: 20px;
  }

  .about-text h2 {
    font-size: 26px;
    text-align: center;
  }

  .about-text p {
    font-size: 15px;
    text-align: center;
  }

  .about-image img {
    max-width: 400px;
    height: auto;
  }
}

/* Small Devices (Phones) */
@media screen and (max-width: 767px) {
  .about-text h2 {
    font-size: 22px;
  }

  .about-text p {
    font-size: 14px;
  }

  .about-text button {
    padding: 8px 16px;
  }

  .about-image img {
    max-width: 90%;
  }
}

/* Extra Small Devices (Very Small Phones) */
@media screen and (max-width: 480px) {
  .about-section {
    margin-top: 0;
  }

  .about-content {
    padding: 20px;
  }

  .about-text {
    padding: 10px;
  }

  .about-text h2 {
    font-size: 20px;
  }

  .about-text p {
    font-size: 13px;
  }

  .about-text button {
    padding: 7px 14px;
    font-size: 14px;
  }

  .about-image img {
    max-width: 100%;
    padding: 0;
  }
}

/* inquire now ---------------------------------------------------------------------------------------------------- */
/* Medium Devices (Tablets) */
@media screen and (max-width: 991px) {
  .container1 {
    flex-direction: column;
  }

  .image-section img {
    height: 500px;
  }

  .form-section {
    padding: 50px;
  }

  .form-section h2 {
    margin-top: 0;
    font-size: 28px;
    text-align: center;
  }

  form {
    max-width: 100%;
  }
}

/* Small Devices (Phones) */
@media screen and (max-width: 767px) {
  .image-section img {
    height: 350px;
  }

  .form-section {
    padding: 30px;
  }

  .form-section h2 {
    font-size: 24px;
  }

  input,
  textarea {
    font-size: 15px;
  }

  button {
    font-size: 15px;
    padding: 10px;
  }
}

/* Extra Small Devices */
@media screen and (max-width: 480px) {
  .image-section img {
    height: 250px;
  }

  .form-section {
    padding: 20px;
  }

  .form-section h2 {
    font-size: 22px;
  }

  input,
  textarea {
    font-size: 14px;
  }

  button {
    font-size: 14px;
    padding: 8px;
  }
}

/* footer--------------------------------------------------------------------------------------- */
/* Medium Devices (Tablets) */
@media screen and (max-width: 991px) {
  .footer-content {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
  }

  .footer-box {
    flex: 1 1 45%;
    max-width: 45%;
  }

  .footer-box h4 {
    font-size: 20px;
  }

  .footer-box p,
  .footer-box li {
    font-size: 14px;
  }
}

/* Small Devices (Phones) */
@media screen and (max-width: 767px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-box {
    max-width: 90%;
  }

  .footer-box h4 {
    font-size: 18px;
  }

  .footer-box p,
  .footer-box li {
    font-size: 13px;
  }

  .footer-box input[type="email"],
  .footer-box button {
    width: 100%;
    font-size: 14px;
  }

  .bottom-footer {
    font-size: 0.8em;
  }
}

/* Extra Small Devices */
@media screen and (max-width: 480px) {
  .footer-box {
    max-width: 100%;
  }

  .footer-box h4 {
    font-size: 17px;
  }

  .footer-box p,
  .footer-box li {
    font-size: 12.5px;
  }

  .footer-box input[type="email"],
  .footer-box button {
    padding: 8px;
    font-size: 13px;
  }
}

/* testimonials------------------------------------------------------------------------------ */
/* Tablets */
@media screen and (max-width: 991px) {
  .testimonials {
    padding: 50px 30px;
  }

  .testimonials h2 {
    font-size: 28px;
  }

  .testimonial {
    max-width: 45%;
  }

  .testimonial p {
    font-size: 0.9em;
  }
}

/* Phones */
@media screen and (max-width: 767px) {
  .testimonials h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .testimonial-container {
    gap: 20px;
  }

  .testimonial {
    max-width: 90%;
    padding: 15px;
  }

  .testimonial img {
    width: 80px;
    height: 80px;
  }

  .testimonial h3 {
    font-size: 1em;
  }

  .testimonial p {
    font-size: 0.9em;
  }
}

/* Extra Small Phones */
@media screen and (max-width: 480px) {
  .testimonials {
    padding: 40px 15px;
  }

  .testimonials h2 {
    font-size: 22px;
  }

  .testimonial {
    padding: 15px 10px;
  }

  .testimonial img {
    width: 70px;
    height: 70px;
  }

  .testimonial p {
    font-size: 0.85em;
  }
}

/* Tablets */
@media (max-width: 991px) {
  .why-us-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .why-us-image,
  .why-us-text {
    flex: 1 1 100%;
  }

  .why-us-image img {
    border-radius: 60px;
    max-width: 90%;
    margin: 0 auto;
  }

  .why-us-text {
    padding: 0 20px;
  }

  .why-us-text h2 {
    font-size: 1.8em;
  }

  .why-us-text p {
    font-size: 0.95em;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .why-us {
    padding: 40px 15px;
  }

  .why-us-text h2 {
    font-size: 1.6em;
  }

  .why-us-text p {
    font-size: 0.9em;
  }

  .why-us-image img {
    border-radius: 40px;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .why-us-text h2 {
    font-size: 1.5em;
  }

  .why-us-text p {
    font-size: 0.85em;
  }

  .why-us-image img {
    border-radius: 30px;
  }
}

/* breadcrum------------------------------------------------------------------------------------- */
/* Tablets */
@media (max-width: 991px) {
  .breadcrumb-overlay {
    padding: 60px 0;
  }

  .breadcrumb-overlay h1 {
    font-size: 2.4em;
  }

  .breadcrumb-nav {
    font-size: 0.95rem;
  }
}

/* Phones */
@media (max-width: 767px) {
  .breadcrumb-overlay {
    padding: 50px 0;
  }

  .breadcrumb-overlay h1 {
    font-size: 1.80em;
  }

  .breadcrumb-nav {
    font-size: 0.9rem;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .breadcrumb-overlay {
    padding: 40px 0;
  }

  .breadcrumb-overlay h1 {
    font-size: 1em;
  }

  .breadcrumb-nav {
    font-size: 0.55rem;
  }
}


/* contact-box2 ------------------------------------------------------------------------*/
/* Medium Devices (Tablets) */
@media (max-width: 991px) {
  .contact-section2 {
    padding: 30px 20px;
  }

  .contact-box2 {
    flex: 1 1 45%;
  }
}

/* Small Devices (Mobile Landscape) */
@media (max-width: 767px) {
  .contact-section2 {
    flex-direction: column;
    padding: 20px;
  }

  .contact-box2 {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .contact-box2 i {
    font-size: 32px;
  }

  .contact-box2 h3 {
    font-size: 18px;
  }

  .contact-box2 p {
    font-size: 15px;
  }
}

/* Extra Small Devices (Phones) */
@media (max-width: 480px) {
  .contact-section2 {
    padding: 15px;
  }

  .contact-box2 {
    padding: 15px;
  }

  .contact-box2 i {
    font-size: 28px;
  }

  .contact-box2 h3 {
    font-size: 16px;
  }

  .contact-box2 p {
    font-size: 14px;
  }
}

/* page socialmedia-sidebar--------------------------------------------------------------- */
/* Responsive adjustments */
@media (max-width: 1024px) {
  /* Shift sidebar slightly lower on tablets */
  .social-sidebar {
    top: 60%;
  }
}

@media (max-width: 768px) {
  /* On smaller tablets and large phones, reduce size */
  .social-sidebar {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    background: rgba(0,0,0,0.1);
    padding: 5px 10px;
    border-radius: 30px;
    width: auto;
    gap: 15px;
  }

  .social-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  /* Hide sidebar completely on very small screens or replace with a toggle button */
  .social-sidebar {
    display: none;
  }
}
/* blogs------------------------------------------------------------------------------------------------ */

/* Media Queries for Responsive Behavior */
@media screen and (max-width: 1024px) {
  .blog-section h2 {
    font-size: 1.8em;
  }
}

@media screen and (max-width: 768px) {
  .blog-meta {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }

  .blog-section h2 {
    font-size: 1.6em;
  }

  .blog-post img {
    height: 160px;
  }

  .blog-post textarea {
    font-size: 0.95em;
  }

  .blog-post .blog-name {
    font-size: 0.95em;
  }
}

@media screen and (max-width: 480px) {
  .blog-section {
    padding: 30px 10px;
  }

  .blog-post {
    padding: 15px;
  }

  .blog-section h2 {
    font-size: 1.4em;
  }

  .blog-post img {
    height: 140px;
  }
}

/* clients---------home */
@media (max-width: 1024px) {
  .client-logo {
    width: 120px;
  }

  .client-logo h5 {
    font-size: 0.85rem;
  }

  .clients-section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .client-logo {
    width: 100px;
    margin-right: 10px;
  }

  .client-logo img {
    max-height: 70px;
  }

  .client-logo h5 {
    font-size: 0.8rem;
  }

  .clients-section h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .client-logo {
    width: 90px;
    padding: 8px;
    margin-right: 8px;
  }

  .client-logo img {
    max-height: 60px;
  }

  .client-logo h5 {
    font-size: 0.75rem;
  }

  .clients-section h2 {
    font-size: 1.4rem;
  }
}