/* Mobile Improvements for About Page - Performance & Design Focus */

/* Hide unnecessary decorative elements on mobile */
@media screen and (max-width: 768px) {
  /* Hide decorative background images on mobile for performance */
  .bp-chose-1,
  .bp-chose-2,
  .bp-chose-3 {
    display: none !important;
  }

  /* Hide social icons on mobile to save space */
  .tp-hero-social.bs-hero-social {
    display: none !important;
  }

  /* Reduce padding and margins for better mobile experience */
  .tp-hero-area {
    padding: 40px 0 !important;
  }

  .tp-chose-area {
    padding: 60px 0 40px !important;
  }

  .pbisa {
    padding: 60px 0 40px !important;
  }

  .das {
    padding: 60px 0 40px !important;
  }

  .ac-team-area {
    padding: 60px 0 40px !important;
  }

  /* Improve container spacing */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Team Section - 4x2 Layout on Desktop, Mobile Optimized */
/* Debug: Added specific selectors to override global styles */

/* Desktop Layout - Force 4x2 Grid */
@media screen and (min-width: 769px) {
  .ac-team-area .row .col-xl-3,
  .ac-team-area .row .col-lg-3,
  .ac-team-area .row .col-md-6,
  .ac-team-area .row .col-sm-6 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}

@media screen and (max-width: 768px) {
  /* Mobile team cards - only affects mobile */
  .ac-team-area .tp_outer,
  .tp_outer {
    width: 100px !important;
    height: 100px !important;
    padding-top: 0 !important;
    margin: 0 auto 10px !important;
  }

  .ac-team-area .tp_inner,
  .tp_inner {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .ac-team-area .tp_inner_img,
  .tp_inner_img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  .ac-team-area .tp_writting,
  .tp_writting {
    text-align: center !important;
    padding: 0 5px !important;
    margin-top: 10px !important;
  }

  .ac-team-area .emp_name,
  .emp_name {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
    padding-top: 0 !important;
  }

  .ac-team-area .emp_designation,
  .emp_designation {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #666 !important;
  }

  /* Better grid layout for mobile */
  .ac-team-area .row > div {
    margin-bottom: 20px !important;
  }

  .ac-team-area .col-xl-6,
  .ac-team-area .col-lg-6,
  .ac-team-area .col-md-6 {
    margin-bottom: 25px !important;
  }
}

@media screen and (max-width: 576px) {
  .ac-team-area .tp_outer,
  .tp_outer {
    width: 80px !important;
    height: 80px !important;
  }

  .ac-team-area .emp_name,
  .emp_name {
    font-size: 14px !important;
  }

  .ac-team-area .emp_designation,
  .emp_designation {
    font-size: 11px !important;
  }
}

/* Blog Section - Fix Pill Visibility and Clean Design */
@media screen and (max-width: 768px) {
  /* Blog card container - OVERRIDE GLOBAL STYLES */
  .swiper-slide.box-shadow-new-home,
  .carousel-power-bi .swiper-slide.box-shadow-new-home {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .swiper-slide.box-shadow-new-home:hover,
  .carousel-power-bi .swiper-slide.box-shadow-new-home:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  }

  /* Image container - OVERRIDE GLOBAL STYLES */
  .new-blog-card-img-container,
  .carousel-power-bi .new-blog-card-img-container {
    height: 160px !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
    position: relative !important;
  }

  .new-blog-card-img,
  .carousel-power-bi .new-blog-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Card body - OVERRIDE GLOBAL STYLES */
  .new-blog-card-body,
  .carousel-power-bi .new-blog-card-body,
  .das.new-blog-card-body {
    padding: 12px 10px !important;
    background: #fff !important;
    border-radius: 0 0 12px 12px !important;
    border: none !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Date styling - OVERRIDE GLOBAL STYLES */
  .new-blog-card-date,
  .carousel-power-bi .new-blog-card-date {
    font-size: 10px !important;
    color: #6c757d !important;
    margin-bottom: 6px !important;
    font-weight: 500 !important;
  }

  /* Headline styling - OVERRIDE GLOBAL STYLES */
  .new-blog-card-headline,
  .carousel-power-bi .new-blog-card-headline {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    color: #212529 !important;
    font-weight: 600 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Tags/pills styling - FIXED FOR VISIBILITY - OVERRIDE GLOBAL STYLES */
  .new-blog-card-tags,
  .carousel-power-bi .new-blog-card-tags {
    margin-top: 8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  .new-blog-card-tags .button,
  .carousel-power-bi .new-blog-card-tags .button {
    font-size: 9px !important;
    padding: 2px 6px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    background: #e9ecef !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    max-width: 80px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .new-blog-card-tags .button:hover,
  .carousel-power-bi .new-blog-card-tags .button:hover {
    background: #dee2e6 !important;
    color: #343a40 !important;
  }

  /* Override global button styles */
  .new-blog-card-tags .button a,
  .carousel-power-bi .new-blog-card-tags .button a {
    color: #495057 !important;
    text-decoration: none !important;
    font-size: 9px !important;
    font-weight: 500 !important;
  }

  .new-blog-card-tags .button:hover a,
  .carousel-power-bi .new-blog-card-tags .button:hover a {
    color: #343a40 !important;
  }
}

@media screen and (max-width: 576px) {
  .new-blog-card-img-container {
    height: 140px !important;
  }

  .new-blog-card-body {
    padding: 10px 8px !important;
  }

  .new-blog-card-headline {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  .new-blog-card-date {
    font-size: 9px !important;
    margin-bottom: 4px !important;
  }

  .new-blog-card-tags {
    margin-top: 6px !important;
    gap: 3px !important;
  }

  .new-blog-card-tags .button {
    font-size: 8px !important;
    padding: 2px 4px !important;
    max-width: 70px !important;
  }
}

/* Our Strength Section - OVERRIDE GLOBAL STYLES */

/* Add left padding to strength section headings */
@media screen and (max-width: 768px) {
  .our-strength-container h2,
  .our-strength-container h3,
  .our-strength-container h4,
  .our-strength-container .section-title,
  .our-strength-container .ac-team-title,
  .page-title.page-title-secondary,
  .section-header,
  .our-strength-naming h2,
  .our-strength-naming .section-header {
    padding-left: 15px !important;
  }

  .our-strength-container p,
  .our-strength-container .caption {
    padding-left: 15px !important;
  }
}

@media screen and (max-width: 768px) {
  /* Target the correct strength cards - OVERRIDE GLOBAL STYLES */
  .our-strength-container .our-strength-card,
  .our-strength-flex-mobile .our-strength-card,
  #our-strength-slider .our-strength-card,
  .swiper-wrapper.our-strength-flex-mobile .our-strength-card {
    background: #141c3a !important;
    border-radius: 12px !important;
    padding: 16px 12px !important;
    height: auto !important;
    min-height: 140px !important;
    max-width: 280px !important;
    margin: 0 8px !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .our-strength-container .our-strength-card:hover,
  .our-strength-flex-mobile .our-strength-card:hover,
  #our-strength-slider .our-strength-card:hover,
  .swiper-wrapper.our-strength-flex-mobile .our-strength-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
  }

  .our-strength-container .our-strength-card p,
  .our-strength-flex-mobile .our-strength-card p,
  #our-strength-slider .our-strength-card p,
  .swiper-wrapper.our-strength-flex-mobile .our-strength-card p {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin-top: 8px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
  }

  .our-strength-container .our-strength-icon.icon-bg,
  .our-strength-flex-mobile .our-strength-icon.icon-bg,
  #our-strength-slider .our-strength-icon.icon-bg,
  .swiper-wrapper.our-strength-flex-mobile .our-strength-icon.icon-bg {
    width: 40px !important;
    height: 40px !important;
    background-size: contain !important;
    background-position: center !important;
    margin-bottom: 8px !important;
  }

  .our-strength-card.our-strength-we-are,
  #our-strength-slider .our-strength-card.our-strength-we-are,
  .swiper-wrapper.our-strength-flex-mobile
    .our-strength-card.our-strength-we-are {
    background: linear-gradient(135deg, #97cf00 0%, #24b400 100%) !important;
    padding: 16px 12px !important;
    border: none !important;
  }

  .our-strength-card.our-strength-we-are p,
  #our-strength-slider .our-strength-card.our-strength-we-are p,
  .swiper-wrapper.our-strength-flex-mobile
    .our-strength-card.our-strength-we-are
    p {
    font-size: 13px !important;
    margin-bottom: 8px !important;
    color: #fff !important;
    font-weight: 500 !important;
  }

  .our-strength-card.our-strength-we-are .our-strength-we-are-scofe,
  #our-strength-slider
    .our-strength-card.our-strength-we-are
    .our-strength-we-are-scofe,
  .swiper-wrapper.our-strength-flex-mobile
    .our-strength-card.our-strength-we-are
    .our-strength-we-are-scofe {
    gap: 4px !important;
    flex-wrap: wrap !important;
  }

  .our-strength-card.our-strength-we-are .our-strength-we-are-scofe span,
  #our-strength-slider
    .our-strength-card.our-strength-we-are
    .our-strength-we-are-scofe
    span,
  .swiper-wrapper.our-strength-flex-mobile
    .our-strength-card.our-strength-we-are
    .our-strength-we-are-scofe
    span {
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: #fff !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
  }

  /* Pagination */
  .our-strength-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 20px !important;
    z-index: 10 !important;
  }

  .our-strength-pagination .strength-car-bullet {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    margin: 0 3px !important;
  }

  .our-strength-pagination .strength-car-bullet-active {
    background: linear-gradient(
      130.27deg,
      #97cf00 -14.98%,
      #24b400 109.44%
    ) !important;
    transform: scale(1.2) !important;
  }
}

@media screen and (max-width: 576px) {
  .our-strength-container .our-strength-card,
  .our-strength-flex-mobile .our-strength-card {
    max-width: 260px !important;
    padding: 12px 10px !important;
    min-height: 120px !important;
  }

  .our-strength-container .our-strength-card p,
  .our-strength-flex-mobile .our-strength-card p {
    font-size: 11px !important;
  }

  .our-strength-container .our-strength-icon.icon-bg,
  .our-strength-flex-mobile .our-strength-icon.icon-bg {
    width: 35px !important;
    height: 35px !important;
  }

  .our-strength-card.our-strength-we-are p {
    font-size: 12px !important;
  }

  .our-strength-card.our-strength-we-are .our-strength-we-are-scofe span {
    font-size: 10px !important;
    padding: 2px 4px !important;
  }
}

/* Values Section - Clean Design */
@media screen and (max-width: 768px) {
  .pbisa .card {
    background: #141c3a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 16px 12px !important;
    min-height: 160px !important;
    margin: 0 8px !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .pbisa .card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
  }

  .pbisa .card h4 {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    color: #fff !important;
    font-weight: 600 !important;
  }

  .pbisa .card p {
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
  }

  .pbisa .card-icon {
    margin-bottom: 8px !important;
    text-align: center !important;
  }

  .pbisa .card-icon img {
    width: 35px !important;
    height: 35px !important;
    object-fit: contain !important;
  }

  /* Pagination */
  .pbisa .swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 20px !important;
    z-index: 10 !important;
  }

  .pbisa .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    margin: 0 3px !important;
  }

  .pbisa .swiper-pagination-bullet-active {
    background: #fdc565 !important;
    transform: scale(1.2) !important;
  }
}

@media screen and (max-width: 576px) {
  .pbisa .card {
    padding: 12px 10px !important;
    min-height: 140px !important;
  }

  .pbisa .card h4 {
    font-size: 13px !important;
  }

  .pbisa .card p {
    font-size: 10px !important;
  }

  .pbisa .card-icon img {
    width: 30px !important;
    height: 30px !important;
  }
}

/* General Mobile Improvements */
@media screen and (max-width: 768px) {
  /* Optimize spacing */
  .pt-100 {
    padding-top: 50px !important;
  }

  .pb-100 {
    padding-bottom: 50px !important;
  }

  .pb-50 {
    padding-bottom: 30px !important;
  }

  /* Optimize typography */
  h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 15px;
  }

  .section-header {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  /* Improve text readability */
  p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  /* Optimize images for mobile */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Improve button sizing */
  .tp-btn-sky,
  .tp-btn-border-3 {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
}

@media screen and (max-width: 576px) {
  .pt-100 {
    padding-top: 30px !important;
  }

  .pb-100 {
    padding-bottom: 30px !important;
  }

  .pb-50 {
    padding-bottom: 20px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  .section-header {
    font-size: 18px !important;
  }

  p {
    font-size: 13px !important;
  }

  .tp-btn-sky,
  .tp-btn-border-3 {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }
}

/* Performance optimizations */
@media screen and (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  .wow {
    animation-duration: 0.3s !important;
  }

  /* Optimize swiper performance */
  .swiper-slide {
    will-change: transform;
  }

  /* Reduce box-shadow complexity for better performance */
  * {
    box-shadow: none !important;
  }

  /* Only apply shadows where needed */
  .our-strength-container .our-strength-card,
  .our-strength-flex-mobile .our-strength-card,
  .pbisa .card,
  .swiper-slide.box-shadow-new-home:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
  }
}
