/* ══════════════════════════════════════════════════════════════
   MOBILE OVERRIDE — Loaded LAST to fix responsive card issues.
   Forces correct grid, padding, and font sizes on all screens.
   ══════════════════════════════════════════════════════════════ */

/* ── Fix container inline 8% padding on mobile ─────────────── */
@media (max-width: 1024px) {
  .container[style*="padding-left: 8%"],
  .container[style*="padding-left:8%"] {
    padding-left: 4% !important;
    padding-right: 4% !important;
  }
}

@media (max-width: 768px) {
  .container[style*="padding-left: 8%"],
  .container[style*="padding-left:8%"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 480px) {
  .container[style*="padding-left: 8%"],
  .container[style*="padding-left:8%"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   SERVICES BENTO GRID — CRITICAL FIX
   ══════════════════════════════════════════════════════════════ */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .services-bento {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .svc-featured {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
  }
  .svc-uiux-showcase {
    grid-column: span 2 !important;
  }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
  .services-bento {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .svc-featured {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .svc-uiux-showcase {
    grid-column: span 1 !important;
  }
  .svc-card2-inner {
    padding: 24px 20px 20px !important;
  }
  .svc-card2 h3 {
    font-size: 18px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  .svc-card2 p {
    font-size: 13px !important;
  }
  .svc-uiux-showcase .svc-card2-inner {
    grid-template-columns: 1fr !important;
  }
  .uiux-content {
    padding: 16px !important;
  }
}

@media (max-width: 480px) {
  .services-bento {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .svc-card2-inner {
    padding: 20px 16px 16px !important;
  }
  .svc-card2 h3 {
    font-size: 16px !important;
  }
  .svc-card2 p {
    font-size: 12px !important;
  }
}

@media (max-width: 360px) {
  .svc-card2-inner {
    padding: 16px 12px 12px !important;
  }
  .svc-card2 h3 {
    font-size: 15px !important;
  }
  .svc-card2 p {
    font-size: 11px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   FEATURED CARD — FIX LAYOUT ON MOBILE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .svc-featured .svc-card2-inner {
    padding: 24px 20px 20px !important;
  }
  .svc-featured .svc-card-art {
    max-height: 150px !important;
  }
  .svc-featured .svc-card-art img {
    max-height: 140px !important;
  }
  .svc-highlights {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .svc-highlight-item {
    font-size: 12px !important;
  }
  .svc-tech-strip {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .svc-tech-icons {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .svc-tech-badge {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
  .svc-mini-process {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .svc-mp-line {
    display: none !important;
  }
  .svc-mp-step {
    font-size: 11px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   STATS ROW
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .stat-card {
    padding: 20px 16px !important;
  }
  .stat-card strong {
    font-size: 28px !important;
  }
  .stat-card p {
    font-size: 12px !important;
  }
  .stat-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .stat-card {
    padding: 16px 12px !important;
  }
  .stat-card strong {
    font-size: 24px !important;
  }
  .stat-card p {
    font-size: 11px !important;
  }
}

@media (max-width: 360px) {
  .stats-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .testimonials-track {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .test-card {
    padding: 20px 16px !important;
  }
  .test-card p {
    font-size: 13px !important;
  }
  .test-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
  .test-author strong {
    font-size: 13px !important;
  }
  .test-author span {
    font-size: 11px !important;
  }
  .test-stars i {
    font-size: 14px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   Portfolio
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .cases-nav {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .cases-pills {
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
  }
  .case-pill {
    padding: 6px 10px !important;
    font-size: 10px !important;
  }
  .cases-stage {
    height: 320px !important;
  }
  .case-card {
    width: 260px !important;
    height: 280px !important;
  }
  .case-body h4 {
    font-size: 14px !important;
  }
  .case-body p {
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .cases-stage {
    height: 280px !important;
  }
  .case-card {
    width: 220px !important;
    height: 250px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   PARTNERS GRID
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .partner-grid, .partner-grid-5 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
  .partner-card {
    padding: 14px 10px !important;
  }
  .partner-card img {
    max-height: 32px !important;
  }
  .partner-card span {
    font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  .partner-grid, .partner-grid-5 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
  .partner-card img {
    max-height: 28px !important;
  }
}

@media (max-width: 360px) {
  .partner-grid, .partner-grid-5 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   CLIENT MARQUEE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .marquee-item {
    width: 120px !important;
    padding: 14px 10px 12px !important;
  }
  .marquee-item img {
    width: 48px !important;
    height: 36px !important;
  }
  .marquee-item span {
    font-size: 10px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   TECH STACK
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tech-tabs {
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
  }
  .tech-tab {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }
  .tech-panel {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
  }
  .tech-chip {
    flex: 0 0 calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    padding: 8px 12px !important;
  }
  .tech-chip img {
    width: 20px !important;
    height: 20px !important;
  }
  .tech-chip span {
    font-size: 12px !important;
  }
}

@media (max-width: 360px) {
  .tech-chip {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   WHY BTPL SECTION
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .why-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .why-visual {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .glow-card {
    padding: 16px 14px !important;
  }
  .glow-card i {
    font-size: 22px !important;
  }
  .glow-card strong {
    font-size: 14px !important;
  }
  .why-item {
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .why-visual {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .faq-item summary {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }
  .faq-answer {
    padding: 14px 16px !important;
  }
  .faq-answer p {
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .faq-item summary {
    padding: 12px 14px !important;
    font-size: 13px !important;
  }
  .faq-answer p {
    font-size: 12px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ft-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  .ft-brand,
  .ft-phone,
  .ft-social-block {
    width: 100% !important;
    text-align: center !important;
  }
  .ft-columns {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .footer-col {
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .ft-columns {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .footer-col h4 {
    font-size: 12px !important;
  }
  .footer-col a {
    font-size: 11px !important;
  }
  .footer-bottom p {
    font-size: 10px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   SECTION HEADINGS
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sec-head h2 {
    font-size: clamp(20px, 5.5vw, 30px) !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  .sec-head p {
    font-size: 14px !important;
  }
  .kicker {
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .sec-head h2 {
    font-size: clamp(18px, 5vw, 24px) !important;
  }
  .sec-head p {
    font-size: 13px !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL TEXT OVERFLOW FIX
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  h1, h2, h3, h4, h5, h6 {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  p {
    overflow-wrap: break-word !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   HERO ON MOBILE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  .hero-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .hero {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-visual {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   SVC CARD TAGS & LINKS
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .svc-tags2 {
    gap: 6px !important;
    flex-wrap: wrap !important;
  }
  .svc-tags2 li {
    padding: 4px 8px !important;
    font-size: 10px !important;
  }
  .svc-link2 {
    font-size: 13px !important;
  }
  .svc-num {
    font-size: 10px !important;
  }
  .svc-icon2 {
    width: 36px !important;
    height: 36px !important;
  }
  .svc-icon2 i {
    font-size: 18px !important;
  }
  .svc-corner-icon {
    font-size: 18px !important;
  }
}
