/* large desktop :1366px. */

@media (min-width: 1200px) and (max-width: 1366px) {
  #background-1 {
    background-position: left -100px top -150px;
  }
  .slide-text {
    padding: 40px 0 0;
  }
  #background-5 {
    background-position: left 0% bottom 6%;
  }
  #background-4 {
    background-position: right -22px bottom -108px;
  }
  #background-6 {
    background-position: left 55% top 120px;
  }
  #background-2 {
    background-position: right 9px top 7px;
  }
  #background-7 {
    background-image: url("../../box.png");
    background-position: center;
    background-size: contain;
    width: 600px !important;
    height: 600px !important;
    min-width: 400px !important;
  }
  .coustom-row {
    margin: 0 -15px;
  }
  .coustom-col {
    padding: 0 15px;
  }
}
/* Normal desktop :992px. */

@media (min-width: 992px) and (max-width: 1200px) {
  .about-content {
    padding: 0 57px 0 0;
  }
  #background-7 {
    background-image: url("../../box.png");
    background-position: center;
    background-size: contain;
    width: 700px !important;
    height: 700px !important;
    min-width: 500px !important;
  }
  .single-pricing {
    margin: 0 10px;
  }
  .video-area > img {
    width: 100%;
  }
  .menu-bar ul li a {
    padding-left: 20px;
  }
  .header-btn {
    margin-left: 2px;
  }
  .single-service {
    padding: 50px 26px 71px 24px;
  }

  #background-5 {
    background-position: left 0% bottom 6%;
  }
  #background-4 {
    background-position: right -22px bottom -108px;
  }
  #background-6 {
    background-position: left 55% top 120px;
  }
  #background-2 {
    background-position: right -18px top -16px;
  }
  #background-1 {
    background-position: left -220px top -179px;
  }
  .slide-text {
    padding: 0 0 0;
  }
  .slide-text p {
    width: 100%;
  }
  .slide-text h2 {
    font-size: 38px;
  }
  .about-img {
    padding-right: 100px;
  }
  .coustom-row {
    margin: 0 -15px;
  }
  .coustom-col {
    padding: 0 15px;
  }

  .pb-210 {
    padding-bottom: 170px;
  }
  .pt-280 {
    padding-top: 240px;
  }
}
/* Fix for action cards at ~877px */
@media (min-width: 768px) and (max-width: 991px) {
  .action-cards .col-sm-6 {
    margin-bottom: 30px;
  }
  .single-pricing {
    margin-bottom: 0;
  }

  /* Tablet desktop :768px. */

  @media (min-width: 768px) and (max-width: 991px) {
    .action-cards .col-sm-6 {
      margin-bottom: 30px;
    }
    .single-pricing {
      margin-bottom: 0;
    }

    .menu-bar ul li a {
      font-size: 12px;
      padding-left: 9px;
    }
    .header-btn {
      margin-left: 6px;
      padding: 9px 20px 8px;
    }
    .bar-button.ml-15 {
      margin-left: 5px;
    }
    .single-service {
      padding: 38px 24px 59px 22px;
    }
    .about-content {
      padding: 15px 0 0;
    }
    .single-testi-text > p {
      padding: 36px 22px 39px;
    }
    .subscribe-content > p {
      width: 100%;
    }
    .single-pricing {
      margin: 0;
    }
    .counter-text {
      padding-left: 40px;
      text-align: left;
    }
    .blog-info {
      padding: 35px 18px 26px;
    }
    .blog-info > h2 {
      font-size: 18px;
    }
    .blog-details-wrapper {
      padding: 0;
    }
    #background-5 {
      background-position: left 0 bottom 0%;
    }
    #background-4 {
      background-position: right -94px bottom -165px;
    }
    #background-6 {
      background-position: left 92% top 146px;
    }
    #background-2 {
      background-position: right -29px top -22px;
    }
    #background-1 {
      background-position: left -255px top -135px;
    }
    #background-7 {
      background-image: url("../../box.png");
      background-position: center;
      background-size: contain;
      width: 500px !important;
      height: 500px !important;
      min-width: 400px !important;
    }
    .slide-text {
      padding: 80px 0 0;
    }
    .slide-text p {
      width: 100%;
    }
    .slide-text h2 {
      font-size: 38px;
      line-height: 32px;
    }
    .career-text {
      padding: 55px 0;
    }
    .about-img {
      padding-right: 0;
    }
    .pb-210 {
      padding-bottom: 170px;
    }
    .pt-280 {
      padding-top: 240px;
    }
    .coustom-row {
      margin: 0 -15px;
    }
    .coustom-col {
      padding: 0 15px;
    }
    .blog-right-sidebar {
      margin-top: 60px;
    }
    .blog-right-sidebar-bottom li {
      margin: 0 7px 8px 0;
    }
    .counter-text > p {
      font-size: 14px;
    }
  }
  /* small mobile :320px. */

@media (max-width: 767px) {
  /* Navigation styles moved to navigation.css */
  /* Slider styles moved to navigation.css */

  .single-service {
    margin: 30px 0;
    padding: 40px 15px 34px;
  }
  .about-content {
    padding: 30px 0px 45px 0px;
  }
  .subscribe-content > p {
    width: 100%;
  }
  
  /* Mobile-responsive subscribe form */
  .subscribe-form .mc-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .subscribe-form .mc-form input[type="email"] {
    width: 100%;
    flex: none;
  }
  .subscribe-form .mc-form .clear input {
    width: 100%;
    flex-shrink: 1;
    text-align: center;
  }
  
  /* Increase header font size for mobile */
  .slide-text h2 {
    font-size: 32px;
    line-height: 38px;
  }
  
  /* Add hero image mobile spacing */
  .hero-image,
  #background-7 {
    margin-left: 80px !important;
    margin-right: 20px !important;
  }
  
  /* Increase button text size for mobile */
  .btn,
  .button,
  .primary-btn,
  .secondary-btn,
  .btn-primary,
  .btn-secondary,
  .subscribe-form .mc-form .clear input,
  .slider-btn a,
  .header-btn,
  .header-btn a {
    font-size: 18px !important;
  }
  
  /* Center counter area on mobile */
  .counter-area {
    text-align: center !important;
  }
  .counter-area .row {
    text-align: center !important;
  }
  .single-counter {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .counter-text {
    padding-left: 0 !important;
    text-align: center !important;
    margin-bottom: 30px;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .counter-text h3,
  h3.counter {
    text-align: center !important;
  }
  .counter-text > p {
    text-align: center !important;
  }
  /* Override Bootstrap column alignment */
  .counter-area .col-md-4,
  .counter-area .col-12,
  .counter-area .col-sm-6 {
    text-align: center !important;
  }
  /* Override counter icon float if present */
  .counter-icon {
    float: none !important;
    display: block !important;
    text-align: center !important;
    margin: 0 auto 10px auto !important;
  }
  .single-pricing {
    margin: 0 0 30px;
  }
  .menu-bar.navbar-collapse {
    position: absolute;
    top: 100%;
    right: 15px;
    left: 15px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000;
  }
  .menu-bar ul {
    background-color: #fff;
    margin: 0;
    padding: 0;
  }
  .menu-bar ul li {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .menu-bar ul li a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #eee;
  }
  .menu-bar ul li a {
    color: #333;
    display: block;
    padding-left: 0;
  }
  .stick .menu-bar ul li a {
    color: #333;
  }
  .stick .menu-bar ul li a:hover {
    color: #49b970;
  }
  .header-left.f-left {
    float: none;
  }
  .logo {
    display: inline-block;
    margin-top: 5px;
  }
  .menu-bar.navbar-collapse {
    width: 100%;
  }
  .header-right.f-right {
    float: none;
  }
  #background-8 {
    background-position: right 120px bottom 60px;
  }
  .blog-details-wrapper {
    padding: 0;
  }
  .pb-210 {
    padding-bottom: 180px;
  }
  .pt-280 {
    padding-top: 184px;
  }
  .single-comment.middle-blog {
    margin-left: 0;
  }
  .ptb-120 {
    padding: 80px 0;
  }
  #background-5 {
    background-position: left 0 bottom 0%;
  }
  #background-4 {
    background-position: right -94px bottom -224px;
  }
  #background-6 {
    background-position: left 142% top 103px;
  }
  #background-2 {
    background-position: right -29px top -22px;
  }
  #background-1 {
    background-position: left -278px top -170px;
  }
  #background-3 {
    background-position: right 14% bottom 9%;
  }
  #background-7 {
    background-image: url("../../box.png");
    background-position: center;
    background-size: contain;
    width: 360px !important;
    height: 360px !important;
    min-width: 360px !important;
  }
  /* Slide text styles moved to navigation.css */
  .mockup-img > img {
    margin: 0 auto;
    width: 100%;
    min-width: 360px;
    min-height: 360px;
    object-fit: contain;
  }
  .mockup-img {
    padding: 20px;
    width: 100%;
    max-width: 500px;
    text-align: center;
  }
  .career-text {
    padding: 55px 0;
  }
  .rules-text > h2 {
    font-size: 26px;
    line-height: 35px;
  }
  .pt-120 {
    padding-top: 80px;
  }
  .pb-90 {
    padding-bottom: 50px;
  }
  .section-title > h2 {
    margin-bottom: 40px;
  }
  .section-title.section-title2 > h2 {
    margin-bottom: 40px;
  }
  .ptb-150 {
    padding: 80px 0;
  }
  .coustom-row {
    margin: 0 -15px;
  }
  .coustom-col {
    padding: 0 15px;
  }
  .blog-right-sidebar {
    margin-top: 60px;
  }
  .blog-right-sidebar-bottom li {
    margin: 0 7px 8px 0;
  }
  .navbar-toggler {
    float: right;
  }
  .subscribe-content > h2 {
    font-size: 26px;
  }
  .section-title > h2 {
    font-size: 26px;
  }
  .menu-bar ul li.active a {
    color: #49b970;
  }
  .stick .menu-bar ul li a:hover,
  .stick .menu-bar ul li.active a {
    color: #49b970;
  }
  .breadcrumbs-text > h2 {
    font-size: 30px;
  }
}
/* Large Mobile :480px. */

@media only screen and (min-width: 576px) and (max-width: 767px) {
  #background-7 {
    width: 360px !important;
    height: 360px !important;
    min-width: 360px !important;
    background-size: contain;
    background-position: center;
    transform: none !important;
  }
  .slide-text {
    text-align: center;
  }
}
