/* ==========================================================================
   ASK DIGITAL AGENCY - COMPREHENSIVE MOBILE RESPONSIVE ENGINE
   Optimized for 320px, 360px, 375px, 390px, 430px, and tablet screens.
   Strictly preserves desktop styling and theme identity (#98E209 neon-lime).
   ========================================================================== */

/* 1. Global Reset & Overflow Guard */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Ensure smooth image rendering and no horizontal container bursting */
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* 2. GSAP Animated Text Mobile Guard (Scrub Failure Fallback) */
@media (max-width: 991px) {
  .themeht-anim-text,
  .themeht-anim-text .char,
  .themeht-anim-text .word {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    color: #ffffff !important;
  }
  .themeht-anim-heading {
    overflow: visible !important;
  }
}

/* 3. Header & Navigation Mobile Optimization (< 1200px) */
@media (max-width: 1199px) {
  :root {
    --site-header-offset: 66px;
  }

  .header {
    padding: 10px 16px !important;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    background: rgba(8, 1, 1, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar {
    padding: 0 !important;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-brand.logo {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
  }

  .navbar-brand.logo img {
    max-height: 38px !important;
    width: auto;
    object-fit: contain;
  }

  .navbar-toggler.ht-toggler {
    padding: 2px !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .navbar-toggler.ht-toggler svg {
    width: 36px;
    height: 36px;
  }

  .navbar-toggler.ht-toggler .line {
    stroke: #ffffff !important;
  }

  /* Mobile Navigation Drawer is styled in services-mega-menu.css */
  .header .themeht-btn {
    display: none !important;
  }
}

/* 4. Hero Section Mobile Optimization (< 768px) */
@media (max-width: 767px) {
  .banner-text.banner-two {
    padding: clamp(20px, 4vw, 30px) 14px !important;
  }

  .banner-two-heading-first h1 {
    font-size: clamp(30px, 8.5vw, 48px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
  }

  .banner-two-heading-second {
    display: block !important;
    margin-top: 6px;
  }

  .banner-two-video {
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(80px, 24vw, 110px) !important;
    border-radius: 18px !important;
    margin-bottom: 10px !important;
  }

  .banner-two-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .banner-two-heading-second h1 {
    font-size: clamp(30px, 8.5vw, 48px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.5px;
  }

  .banner-two-btm {
    margin-top: 24px !important;
  }

  .banner-two-btm h4 {
    font-size: clamp(17px, 4.5vw, 22px) !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }

  .banner-two-btm p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 22px !important;
  }

  .banner-two-btm .text-end {
    text-align: center !important;
    margin-top: 26px;
  }

  .round-text {
    width: 140px !important;
    height: 140px !important;
    margin: 0 auto !important;
  }

  .round-text text {
    font-size: 13px !important;
  }

  .text-btn-icon {
    width: 44px !important;
    height: 44px !important;
    background: #000000 !important;
    border: 1px solid rgba(152, 226, 9, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-badge-svg-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 5. About Section & Counters Mobile Optimization */
@media (max-width: 767px) {
  .p-120 {
    padding: 56px 0 !important;
  }

  .clip-section {
    clip-path: none !important;
  }

  .featured-item.style-3 {
    padding: 12px 0 !important;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .featured-item.style-3 .featured-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .featured-item.style-3 .featured-title h4 {
    font-size: 16.5px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
  }

  /* 3 Statistics Strictly in ONE Single Horizontal Row (1x3 Grid) on Mobile - Legacy only */
  .about-stats-row:has(.counter) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    margin-left: -5px !important;
    margin-right: -5px !important;
    margin-top: 28px !important;
  }

  .about-stats-row > [class*="col-"] {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    box-sizing: border-box !important;
  }

  .about-stats-row .counter {
    padding: clamp(10px, 2.5vw, 16px) clamp(3px, 1vw, 8px) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #EDEDED !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .about-stats-row .counter.counter-border1 {
    border-radius: 0px clamp(28px, 8vw, 50px) clamp(28px, 8vw, 50px) 0px !important;
  }
  .about-stats-row .counter.counter-border2 {
    border-radius: 0px clamp(35px, 10vw, 60px) 0px 0px !important;
  }
  .about-stats-row .counter.counter-border3 {
    border-radius: 12px !important;
  }

  .about-stats-row .counter-desc {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .about-stats-row .counter-num {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    white-space: nowrap !important;
    color: #111111 !important;
  }

  .about-stats-row .counter span,
  .about-stats-row .counter-num .count-number {
    font-size: clamp(16px, 4.5vw, 24px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
    color: #111111 !important;
    display: inline-block !important;
  }

  .about-stats-row .counter span.counter-suffix,
  .about-stats-row .counter-num .counter-suffix {
    font-size: clamp(12px, 3.2vw, 17px) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #111111 !important;
    margin-left: 1px !important;
  }

  .about-stats-row .counter h5,
  .about-stats-row .counter-desc h5 {
    font-size: clamp(9px, 2.3vw, 12px) !important;
    line-height: 1.2 !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    font-weight: 600 !important;
    color: #333333 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
  }
}

/* Homepage Services Cards - 2x2 Mobile Grid (< 768px) */
@media (max-width: 767px) {
  .services-cards-row {
    margin-left: -6px !important;
    margin-right: -6px !important;
  }

  .services-cards-row > [class*="col-"] {
    padding-left: 6px !important;
    padding-right: 6px !important;
    display: flex !important;
  }

  .services-cards-row > [class*="col-"]:nth-child(1),
  .services-cards-row > [class*="col-"]:nth-child(2) {
    margin-top: 0 !important;
  }

  .services-cards-row > [class*="col-"]:nth-child(3),
  .services-cards-row > [class*="col-"]:nth-child(4) {
    margin-top: 14px !important;
  }

  .services-cards-row .service-item.style-1 {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: clamp(14px, 3.8vw, 18px) clamp(10px, 2.8vw, 14px) !important;
    border-radius: 12px !important;
    background-color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: 0 !important;
  }

  .services-cards-row .service-item.style-1 .service-desc {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .services-cards-row .service-item.style-1 .service-icon {
    margin-bottom: 12px !important;
  }

  .services-cards-row .service-item.style-1 .service-icon .service-svg-icon {
    width: clamp(28px, 7.5vw, 36px) !important;
    height: clamp(28px, 7.5vw, 36px) !important;
  }

  .services-cards-row .service-item.style-1 .service-title h4 {
    font-size: clamp(13px, 3.8vw, 16px) !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
    min-height: 2.5em;
  }

  .services-cards-row .service-item.style-1 .service-desc p {
    font-size: clamp(10.5px, 2.7vw, 12px) !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    color: #888888 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .services-cards-row .service-item.style-1 a.text-btn-wrap {
    font-size: 11px !important;
    margin-top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #ffffff !important;
  }

  .services-cards-row .service-item.style-1 a.text-btn-wrap .btn-icon-wrap svg {
    width: 10px !important;
    height: 12px !important;
  }

  /* Linear glowing animated border must never block touch interaction */
  .service-linear {
    pointer-events: none !important;
  }
}

/* 6. Marquee Sections Mobile Guard */
@media (max-width: 767px) {
  .marquee-wrap {
    padding: 12px 0 !important;
    max-width: 100vw;
    overflow: hidden !important;
  }

  .marquee-wrap.style1 .marquee-text span,
  .marquee-wrap.style2 .marquee-text span {
    font-size: clamp(26px, 7.5vw, 38px) !important;
  }
}

/* 7. Services / Innovations / Features Grid Mobile Optimization */
.innovations-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              background-color 0.2s ease;
  will-change: opacity, transform;
}

.innovations-card.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.innovations-cards-row .innovations-card-col:nth-child(1) .innovations-card { transition-delay: 0.04s; }
.innovations-cards-row .innovations-card-col:nth-child(2) .innovations-card { transition-delay: 0.11s; }
.innovations-cards-row .innovations-card-col:nth-child(3) .innovations-card { transition-delay: 0.18s; }
.innovations-cards-row .innovations-card-col:nth-child(4) .innovations-card { transition-delay: 0.25s; }

/* Desktop Hover Lift */
@media (hover: hover) and (pointer: fine) {
  .innovations-card:hover {
    transform: translateY(-4px);
    border-color: rgba(152, 226, 9, 0.35) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(152, 226, 9, 0.1) !important;
  }
  .innovations-card:hover a.text-btn-wrap span {
    color: #98E209 !important;
  }
  .innovations-card:hover a.text-btn-wrap .btn-icon-wrap svg path {
    fill: #98E209 !important;
  }
  .innovations-card:hover a.text-btn-wrap .btn-icon-wrap {
    transform: translateY(-25px);
  }
}

/* Mobile Touch Micro-Scale Interaction */
@media (hover: none), (pointer: coarse) {
  .innovations-card:active {
    transform: scale(0.975);
    border-color: rgba(152, 226, 9, 0.4) !important;
    background-color: #17181f !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(152, 226, 9, 0.12) !important;
  }
  .innovations-card a.text-btn-wrap:active span {
    color: #98E209 !important;
  }
  .innovations-card a.text-btn-wrap:active .btn-icon-wrap svg path {
    fill: #98E209 !important;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .innovations-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Tablet (768px - 991px): 2 balanced columns */
@media (min-width: 768px) and (max-width: 991px) {
  .innovations-section {
    padding-top: 60px !important;
    padding-bottom: 70px !important;
  }
  .innovations-cards-row {
    --bs-gutter-x: 16px !important;
    --bs-gutter-y: 16px !important;
  }
  .innovations-card-col {
    margin-top: 12px !important;
    display: flex;
  }
  .innovations-section .featured-item.style-1,
  .innovations-card {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #111217 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 22px 18px !important;
    box-sizing: border-box !important;
  }
  .innovations-section .featured-item.style-1 .featured-desc {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  .innovations-section .featured-item.style-1 .featured-title h4 {
    font-size: 19px !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
  }
  .innovations-section .featured-item.style-1 .featured-desc p {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #9ca3af !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .innovations-section .featured-item.style-1 .featured-btm {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* Mobile Phones (max-width: 767px): 2x2 Grid */
@media (max-width: 767px) {
  .innovations-section {
    padding-top: 36px !important;
    padding-bottom: 75px !important; /* Safe clearance so floating WhatsApp button never covers cards */
    position: relative;
  }

  .innovations-section .innovations-intro-col {
    margin-bottom: 18px !important;
  }

  .innovations-section .innovations-cards-col {
    margin-top: 0 !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .ht-lg-count {
    font-size: clamp(44px, 13vw, 60px) !important;
    line-height: 1 !important;
    margin: 10px 0 !important;
    color: #98E209;
  }

  /* 2x2 Grid Row & Gutters */
  .innovations-cards-row {
    --bs-gutter-x: 10px !important;
    --bs-gutter-y: 10px !important;
    margin-left: -5px !important;
    margin-right: -5px !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .innovations-card-col {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
  }

  /* 2x2 Card Box */
  .innovations-section .featured-item.style-1,
  .innovations-card {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #111217 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: clamp(12px, 3.2vw, 15px) clamp(9px, 2.6vw, 13px) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* Inner Content */
  .innovations-section .featured-item.style-1 .featured-desc {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
  }

  .innovations-section .featured-item.style-1 .featured-title {
    margin-bottom: 4px !important;
  }

  .innovations-section .featured-item.style-1 .featured-title h4 {
    font-size: clamp(12.5px, 3.4vw, 15px) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.5em; /* Ensures consistent baseline alignment */
    word-break: break-word;
  }

  .innovations-section .featured-item.style-1 .featured-desc p {
    font-size: clamp(10.5px, 2.6vw, 11.5px) !important;
    line-height: 1.38 !important;
    color: #9ca3af !important;
    margin-bottom: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word;
  }

  /* Bottom Actions Bar */
  .innovations-section .featured-item.style-1 .featured-btm {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    overflow: visible !important;
  }

  .innovations-section .featured-item.style-1 .featured-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .innovations-section .featured-item.style-1 .featured-icon img {
    width: clamp(24px, 6vw, 30px) !important;
    height: clamp(24px, 6vw, 30px) !important;
    max-width: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
    border-radius: 5px;
    display: block;
  }

  .innovations-section .featured-item.style-1 a.text-btn-wrap {
    font-size: clamp(10px, 2.7vw, 11.5px) !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 2px !important;
    min-height: 32px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    position: relative;
    z-index: 2;
    transition: color 0.2s ease;
  }

  .innovations-section .featured-item.style-1 a.text-btn-wrap span {
    color: #ffffff;
    transition: color 0.2s ease;
  }

  .innovations-section .featured-item.style-1 a.text-btn-wrap .btn-icon-wrap {
    width: 11px !important;
    height: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
  }

  .innovations-section .featured-item.style-1 a.text-btn-wrap .btn-icon-wrap svg {
    width: 9px !important;
    height: 11px !important;
  }

  .innovations-section .featured-item.style-1 a.text-btn-wrap .btn-icon-wrap svg path {
    fill: #ffffff;
    transition: fill 0.2s ease;
  }
}

/* Extra small devices (<= 360px, e.g. iPhone SE 1st gen) */
@media (max-width: 360px) {
  .innovations-cards-row {
    --bs-gutter-x: 6px !important;
    --bs-gutter-y: 6px !important;
    margin-left: -3px !important;
    margin-right: -3px !important;
  }

  .innovations-card-col {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  .innovations-section .featured-item.style-1,
  .innovations-card {
    padding: 10px 8px !important;
    border-radius: 11px !important;
  }

  .innovations-section .featured-item.style-1 .featured-title h4 {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .innovations-section .featured-item.style-1 .featured-desc p {
    font-size: 9.8px !important;
    line-height: 1.35 !important;
  }

  .innovations-section .featured-item.style-1 .featured-icon img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
  }

  .innovations-section .featured-item.style-1 a.text-btn-wrap {
    font-size: 9.5px !important;
    gap: 3px !important;
  }
}

/* 8. Team Section Mobile Optimization */
@media (max-width: 767px) {
  .team-member {
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
  }

  .team-images img {
    height: 270px !important;
    width: 100%;
    object-fit: cover;
  }

  .team-desc {
    padding: 16px 14px !important;
    text-align: center;
  }

  .team-desc h4 {
    font-size: 17px !important;
    margin-bottom: 4px !important;
  }

  .team-desc span {
    font-size: 13px !important;
    color: #6b7280;
  }

  .team-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .team-social-icon li a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* 9. Testimonial Video Marquee Mobile Optimization */
@media (max-width: 576px) {
  .testimonial-marquee .testimonial.style-1 {
    width: clamp(260px, 80vw, 310px) !important;
    border-radius: 16px !important;
  }

  .testimonial-video iframe {
    height: clamp(145px, 44vw, 175px) !important;
    border-radius: 14px;
  }
}

/* 10. Google Reviews Section Mobile Optimization */
@media (max-width: 767px) {
  .gr-section {
    padding: 56px 0 !important;
  }

  .gr-center-heading {
    font-size: clamp(24px, 6.8vw, 34px) !important;
    line-height: 1.25 !important;
    margin-top: 10px !important;
  }

  .gr-rating-summary {
    font-size: 13.5px !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }

  .gr-tp-btn-wrap {
    margin-top: 18px;
    margin-bottom: 26px;
  }

  .gr-tp-trigger-btn {
    padding: 8px 18px !important;
    font-size: 13px !important;
  }

  .gr-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
    min-height: auto;
  }

  .gr-reviewer-name {
    font-size: 14px !important;
  }

  .gr-review-date {
    font-size: 11.5px !important;
  }

  .gr-card-text {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-top: 10px;
  }

  .gr-controls-wrap {
    margin-top: 20px;
  }
}

/* 11. Trustpilot Modal Mobile Optimization */
@media (max-width: 767px) {
  .tp-modal-dialog {
    width: 92% !important;
    max-width: 420px !important;
    padding: 22px 16px 18px !important;
    border-radius: 16px !important;
    max-height: 86vh !important;
  }

  .tp-modal-close {
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .tp-modal-title {
    font-size: 20px !important;
  }

  .tp-modal-rating-score {
    font-size: 18px !important;
  }

  .tp-modal-rating-meta {
    font-size: 12px !important;
  }

  .tp-modal-reviews-list {
    max-height: 290px !important;
    padding-right: 6px !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .tp-modal-card {
    padding: 12px !important;
  }

  .tp-modal-user-name {
    font-size: 13.5px !important;
  }

  .tp-modal-card-text {
    font-size: 12.5px !important;
  }
}

/* 12. Blog Section Mobile Optimization */
@media (max-width: 767px) {
  .post-card.style-2 {
    margin-top: 18px;
    border-radius: 16px;
    overflow: hidden;
  }

  .post-title h4 {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  .post-bottom {
    font-size: 12.5px;
  }
}

/* 13. Footer Mobile Optimization */
@media (max-width: 767px) {
  .primary-footer {
    padding: 48px 0 24px !important;
  }

  .primary-footer .col-md-3,
  .primary-footer .col-md-4 {
    margin-bottom: 24px !important;
  }

  .primary-footer h4 {
    font-size: 17px !important;
    margin-bottom: 14px !important;
    color: #98E209 !important;
    letter-spacing: 0.5px;
  }

  .primary-footer a {
    padding: 5px 0 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
  }

  .social-icons ul {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .social-icons ul li a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: all 0.2s ease;
  }

  .social-icons ul li a:hover {
    background: #98E209;
    color: #000000;
  }

  .extra-links .col-md-4 {
    margin-bottom: 16px;
  }

  .page-links li a {
    font-size: 13px !important;
    padding: 4px 0 !important;
    display: block;
  }

  .secondary-footer {
    padding: 16px 0 24px !important;
    text-align: center;
  }

  .copyright-text {
    font-size: 12px !important;
    line-height: 1.5;
  }
}

/* 14. Extra Narrow Screens (320px - 360px) Safeguards */
@media (max-width: 360px) {
  .container, .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .themeht-btn {
    padding: 10px 16px !important;
    font-size: 12.5px !important;
  }

  .banner-two-heading-first h1,
  .banner-two-heading-second h1 {
    font-size: 28px !important;
  }

  .round-text {
    width: 120px !important;
    height: 120px !important;
  }

  .round-text text {
    font-size: 11.5px !important;
  }

  .gr-card {
    padding: 14px 12px !important;
  }
}

/* 15. Respect User Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
