:root {
  /* Light theme tuned to reference */
  --bg: #fafafa;
  --bg-muted: #f0f0f0;
  --bg-soft: #ffffff;
  --primary: #c6050e; /* requested red */
  --primary-soft: rgba(198, 5, 14, 0.08);
  --text: #111827;
  --text-muted: #6b7280;
  --accent: #1f2937;
  --border: #e5e7eb;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
  --container-max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box !important;
}
.container:before,
.container:after {
  display: none !important;
  content: none !important;
}
html {
  font-size: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  /* scroll-behavior: smooth !important; */
  -ms-text-size-adjust: 100% !important;
  -webkit-text-size-adjust: 100% !important;
}
body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  letter-spacing: 0 !important;
  /* scroll-behavior: smooth !important; */
}

/* Override Bootstrap heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: inherit !important;
  margin-top: 0 !important;
  margin-bottom: 0.5em !important;
}
h1 {
  font-size: 2.25rem !important;
}
h2 {
  font-size: 2rem !important;
}
h3 {
  font-size: 1.5rem !important;
}
h4 {
  font-size: 1rem !important;
}
h5 {
  font-size: 0.95rem !important;
}
h6 {
  font-size: 0.9rem !important;
}

a {
  color: inherit !important;
  text-decoration: none !important;
  background-color: transparent !important;
}
a:hover, a:focus {
  color: var(--primary) !important;
  text-decoration: none !important;
}

img {
  max-width: 100%;
  display: block ;
  border: 0;
}

.interlink {
    color: #ca0511!important;
    font-weight: 500;
}

/* Layout */

.container {
  max-width: var(--container-max) !important;
  margin: 0 auto !important;
  padding: 0 1.25rem !important;
}

.section {
  padding: 40px 0 !important;
}

.section-top-offset {
  padding-top: 30px !important;
  padding-bottom: 48px !important;
}

.bg-default {
  background: var(--bg) !important;
}

.bg-muted {
  background: var(--bg-muted) !important;
}

/* Text helpers */

.section-title {
  font-weight: 700 !important;
  margin: 0 0 12px !important;
  color: inherit !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  letter-spacing: 0!important;
}

.section-title span{
  color: #C6050E;
}

.section-body a{
color: #ca0511!important;
font-weight: 500;
}

.section-body {
  margin: 0 !important;
  color: var(--text-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
}

.section-body.center {
  text-align: center;
}

.section-header.center {
  text-align: center;
}

.section-header.small-bottom {
  margin-bottom: 28px;
}

.text-gradient,
.logo-gradient {
  background: linear-gradient(90deg, var(--primary), var(--primary)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Buttons */

.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0.55rem 1.4rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  gap: 0.5rem !important;
}
.btn i {
  font-size: 0.95rem !important;
  line-height: 1 !important;
}
.btn-lg i {
  font-size: 1rem !important;
}

.btn-primary {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 12px 25px rgba(198, 5, 14, 0.4) !important;
  border: 1px solid var(--primary) !important;
}

.btn-primary:hover {
  background: #ffffff !important;
  color: #C6050E !important;
  border-color: #C6050E !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 16px 35px rgba(198, 5, 14, 0.5) !important;
}
.btn-primary:hover i {
  color: #C6050E !important;
}

.btn-light {
  background: #f9fafb !important;
  color: #111827 !important;
  box-shadow: var(--shadow-soft) !important;
  border: 1px solid transparent !important;
}

.btn-light:hover {
  background: #ffffff !important;
  color: #C6050E !important;
  border-color: #C6050E !important;
  transform: translateY(-1px) !important;
}
.btn-light:hover i {
  color: #C6050E !important;
}

.btn-lg {
  padding: 0.9rem 1.8rem !important;
  font-size: 1rem !important;
}

.btn-block {
  width: 100%;
}

/* Header */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  line-height: 1.2 !important;
  color: inherit !important;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.9rem !important;
  color: #111827 !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

.nav a:hover {
  color: var(--primary);
}

/* Desktop only elements */

.nav-desktop {
  display: none;
}

.nav-cta {
  display: none;
}

/* Mobile nav toggle */

.nav-toggle {
  width: 36px;
  height: 28px;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle-bar {
  height: 3px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* Mobile nav */

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(15, 15, 23, 0.98);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile-link {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-mobile-link:hover {
  color: var(--primary);
}

/* HERO */

.hero {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-left {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.hero-title {
  font-size: 1.80rem !important;
  font-weight: 700 !important;
  margin: 0 0 1rem !important;
  line-height: 1.15 !important;
  color: inherit !important;
  letter-spacing: 0;
}

.hero-text {
  margin: 0 0 0.75rem !important;
  color: var(--text-muted) !important;
  font-size: 1.125rem;
  line-height: 1.625 !important;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.hero-bullets li {
  display: flex !important;
  gap: 0.6rem !important;
  align-items: flex-start !important;
  margin-bottom: 0.4rem !important;
  color: var(--text-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.hero-cta-wrapper {
  margin-top: 1rem;
}

.hero-cta-wrapper .free_quote:focus{
    color: #fff !important;
}
.hero-cta-wrapper .free_quote:hover{
    color: #c6050e !important;
}

/*Form Css*/
#wpforms-10088 input{
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 0.55rem 0.9rem;
    background: #ffffff;
    color: var(--text);
    font-size: 0.9rem;
}
#wpforms-10088 .wpforms-field {
     padding: 5px 0; 
}
#wpforms-10088 .wpforms-submit-spinner{
   display: none !important;
}
#wpforms-10088.wpforms-container {
    margin-bottom: 0px;
}
/* Hero slider */

.hero-right {
  min-height: 360px;
}

.hero-slider {
  width: 100%;
  height: 100%;
}

.hero-slider-border {
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 8px;
}

.hero-slider-inner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 100%;
  min-height: 320px;
  background: #ffffff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.hero-slide-exit-left {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 0;
}

.hero-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  background: #ffffff !important;
  color: #111827 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18) !important;
  z-index: 2 !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
}
.hero-arrow i {
  font-size: 0.9rem !important;
  color: #111827 !important;
  line-height: 1 !important;
}
.hero-arrow:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 25px rgba(198, 5, 14, 0.3) !important;
}
.hero-arrow:hover i {
  color: #ffffff !important;
}

.hero-arrow-left {
  left: 12px !important;
}

.hero-arrow-right {
  right: 12px !important;
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.active {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-color: var(--primary);
}

/* ABOUT */

.grid-2 {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.about-text .section-body p {
  margin-bottom: 0.75rem;
}
.section-body h3 {
      color:#23282d!important;
      font-size: 1.5rem !important;
      font-weight: 600 !important;
}
.section-body h3 span{
      color: #C6050E;
}

.about-cta-card {
  margin-top: 1.4rem;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(198, 5, 14, 0.2);
  background: linear-gradient(90deg, rgba(198, 5, 14, 0.1), transparent);
}

.about-cta-title {
  margin: 0 0 10px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: inherit !important;
}

.about-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.about-cta-links a {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--primary) !important;
  line-height: 1.5 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}
.about-cta-links a i {
  font-size: 0.9rem !important;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.about-image-bg {
  position: absolute;
  inset: 24px -24px auto auto;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(198, 5, 14, 0.25), rgba(198, 5, 14, 0.05));
  z-index: -1;
}

.about-glow {
  position: absolute;
  inset: auto auto -18px -18px;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(198, 5, 14, 0.3), transparent);
  filter: blur(2px);
  z-index: -1;
}

/* CARDS */

.card-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease, background-color 0.18s ease;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(198, 5, 14, 0.5);
  background-color: #ffffff;
  box-shadow: 0 18px 40px rgba(198, 5, 14, 0.18);
  transform: translateY(-3px);
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  height: 80px;
  background: radial-gradient(
    ellipse at bottom,
    rgba(198, 5, 14, 0.3),
    transparent 65%
  );
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.card-title {
  margin: 0 0 8px !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1.75rem !important;
  color: inherit !important;
  letter-spacing: -.025em;
}

.card-text {
  margin: 0 0 10px !important;
  color: var(--text-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

.card-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(198, 5, 14, 0.18);
  background: rgba(198, 5, 14, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.card:hover .card-icon-circle {
  border-color: rgba(198, 5, 14, 0.6);
  background: rgba(198, 5, 14, 0.12);
}

.card-icon-circle i {
  font-size: 1.2rem;
  color: var(--primary);
}

.card-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.2rem !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  line-height: 1.5 !important;
}
.card-link i {
  font-size: 0.85rem !important;
  transition: transform 0.2s ease !important;
}
.card-link:hover i {
  transform: translateX(2px) !important;
}

/* Inputs */

.input {
  width: 100% !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  padding: 0.55rem 0.9rem !important;
  background: #ffffff !important;
  color: var(--text) !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
.input::placeholder {
  color: #6b7280 !important;
}

.input::placeholder {
  color: #6b7280;
}

/* FOOTER */

.footer {
  background: #020617;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  color: #e5e7eb;
}

.footer-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.6;
}

.footer-main {
  position: relative;
  z-index: 1;
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1.2fr));
  gap: 1.8rem;
}

.footer-logo {
  margin-bottom: 10px;
}

.footer-text {
  margin: 0 0 14px !important;
  color: var(--text-muted) !important;
  font-size: 0.9rem !important;
  max-width: 260px !important;
  line-height: 1.6 !important;
}

.footer-contact > div {
  font-size: 0.86rem !important;
  margin-bottom: 4px !important;
  line-height: 1.5 !important;
  color: inherit !important;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 6px;
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 0.9rem;
  margin-top: 2px;
}

.footer-contact-item span {
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 10px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(31, 41, 55, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #e5e7eb;
  transition: background-color 0.2s ease, transform 0.2s ease,
    color 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-heading {
  margin: 0 0 10px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #f9fafb !important;
  line-height: 1.3 !important;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  line-height: 1.5 !important;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  padding: 16px 0 20px !important;
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  line-height: 1.5 !important;
}

.footer-bottom-links {
  display: flex;
  gap: 1.4rem;
}

/* Utils */

.center {
  text-align: center;
}

.mt-lg {
  margin-top: 24px;
}

/* Responsive */

@media (min-width: 768px) {
  .header > .container {
    height: 72px;
  }

  /* Stats section now uses modular-counter-grid with horizontal scroll on mobile */

  .hero-grid {
    gap: 2rem;
  }

  .hero-left {
    min-height: 430px;
  }

  .hero-slider-inner {
    min-height: 380px;
  }
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clients-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }

  .footer-main {
    grid-template-columns: 2fr repeat(3, minmax(0, 1.2fr));
  }

  .footer-bottom-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 1;
  }

  .card-grid-3,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clients-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .client-card {
    flex: 0 0 72%;
    min-width: 220px;
    scroll-snap-align: center;
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-right {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .card-grid-3,
  .portfolio-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }
}

/* Bootstrap Override Section - Ensure all styles match index.html */
/* Override Bootstrap base styles */
p {
  /*margin: 0 0 0.75rem !important;*/
  color: inherit !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

ul, ol {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

button, input, select, textarea {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  margin: 0 !important;
}

button {
  overflow: visible !important;
  text-transform: none !important;
  -webkit-appearance: button !important;
  appearance: button !important;
  cursor: pointer !important;
}

button[disabled] {
  cursor: default !important;
}

input[type=checkbox], input[type=radio] {
  box-sizing: border-box !important;
  padding: 0 !important;
}

/* Override Bootstrap container */
.container {
  max-width: var(--container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

/* Ensure all text elements use correct font sizes */
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block !important;
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
}

/* Override Bootstrap form elements */
.form-control, .form-group, .form-inline {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Ensure all Bootstrap grid and utility classes don't interfere */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,
.col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4,
.col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6,
.col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8,
.col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10,
.col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
  position: relative !important;
  min-height: 1px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* BLOGS SECTION CUSTOM CSS */
.modular-blog {
  background-color: #FFFFFF !important;
  padding: 2em 0 !important;
}

.modular-blog-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1em !important;
}

.modular-blog-header {
  text-align: center !important;
  margin-bottom: 1.5em !important;
}

.modular-blog-title {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #2C3034 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.modular-blog-title-accent {
  color: #C6050E !important;
}

.modular-blog-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5em !important;
}

.modular-blog-card {
  background-color: #FFFFFF !important;
  border-radius: 0.75em !important;
  border: 0.0625em solid #E5E7EB !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: box-shadow 0.3s ease !important;
}

.modular-blog-card:hover {
  box-shadow: 0 0.25em 0.75em rgba(0, 0, 0, 0.1) !important;
}

.modular-blog-card-image {
  width: 100% !important;
  height: 16em !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease, filter 0.3s ease !important;
}

.modular-blog-card:hover .modular-blog-card-image {
  transform: scale(1.03) !important;
  filter: brightness(1.05) !important;
}

.modular-blog-card-body {
  padding: 1.25em !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.modular-blog-card-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 0.75em !important;
  margin-bottom: 1em !important;
}

.modular-blog-card-tag {
  background-color: rgba(198, 5, 14, 0.1) !important;
  color: #C6050E !important;
  font-size: 0.75em !important;
  font-weight: 500 !important;
  padding: 0.25em 0.75em !important;
  border-radius: 2em !important;
}

.modular-blog-card-date {
  display: flex !important;
  align-items: center !important;
  gap: 0.25em !important;
  font-size: 0.75em !important;
  color: #4A5568 !important;
}

.modular-blog-card-date-icon {
  width: 0.875em !important;
  height: 0.875em !important;
  flex-shrink: 0 !important;
}

.modular-blog-card-title {
  font-size: 1.125em !important;
  font-weight: 700 !important;
  color: #2C3034 !important;
  margin: 0 0 0.5em 0 !important;
  line-height: 1.4 !important;
}

.modular-blog-card-excerpt {
  font-size: 0.875em !important;
  color: #4A5568 !important;
  line-height: 1.625 !important;
  margin: 0 0 1em 0 !important;
  flex: 1 !important;
}

.modular-blog-card-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25em !important;
  color: #C6050E !important;
  font-size: 0.875em !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: gap 0.2s ease, transform 0.2s ease, opacity 0.2s ease !important;
}

.modular-blog-card-link:hover {
  gap: 0.5em !important;
  transform: translateX(0.125em) !important;
  opacity: 0.9 !important;
}

.modular-blog-card-arrow {
  width: 1em !important;
  height: 1em !important;
  flex-shrink: 0 !important;
}

@media (min-width: 768px) {
  .modular-blog-header {
    margin-bottom: 2em !important;
  }
  
  .modular-blog-title {
    font-size: 2.5rem !important;
  }
  
  .modular-blog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .modular-blog-card-body {
    padding: 1.5em !important;
  }
}

@media (min-width: 1024px) {
  .modular-blog-title {
    font-size: 3rem !important;
  }
}

/* Additional Responsive Enhancements */

/* Mobile First - Base styles for small screens */
@media (max-width: 767px) {
  /* Container padding on mobile */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Section padding adjustments */
  .section {
    padding: 2rem 0 !important;
  }
  
  /* Section titles on mobile */
  .section-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  /* Modular section titles */
  .modular-section-title,
  .modular-ourwork-title,
  .modular-clients-title,
  .modular-faq-title,
  .modular-testimonials-title {
    font-size: 1.75rem !important;
  }
  
  /* Button sizes for touch */
  .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
    min-height: 44px !important;
  }
  
  .btn-lg {
    padding: 0.9rem 1.8rem !important;
    font-size: 1rem !important;
    min-height: 48px !important;
  }
  
  /* Card grid - single column on very small screens */
  .card-grid-3,
  .modular-work-grid,
  .modular-blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* Clients grid - horizontal scroll on mobile */
  .modular-clients-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 1rem !important;
    padding-bottom: 0.5rem !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .modular-clients-item {
    flex: 0 0 auto !important;
    min-width: 120px !important;
    scroll-snap-align: start !important;
  }
  
  /* FAQ grid - single column on mobile */
  .modular-faq-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Form elements touch-friendly */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    min-height: 44px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  /* Hero section mobile adjustments */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .hero-left {
    order: 2 !important;
  }
  
  .hero-right {
    order: 1 !important;
  }
  
  /* About section mobile */
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Stats grid mobile - now handled by modular-counter-grid horizontal scroll */
  
  /* Portfolio/Work card mobile */
  .modular-work-card-body {
    padding: 1em !important;
  }
  
  /* Blog card mobile */
  .modular-blog-card-body {
    padding: 1em !important;
  }
  
  /* FAQ form mobile */
  .modular-faq-form-wrap {
    padding: 1.25em !important;
  }
  
  /* Testimonials grid mobile */
  .modular-testimonials-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Container max-width */
  .container {
    max-width: 720px !important;
  }
  
  /* Card grids - 2 columns on tablet */
  .card-grid-3,
  .modular-blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Work grid - 2 columns on tablet */
  .modular-work-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Clients grid - 3 columns on tablet */
  .modular-clients-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Desktop adjustments */
@media (min-width: 1024px) {
  /* Container max-width */
  .container {
    max-width: 1200px !important;
  }
  
  /* Ensure proper spacing */
  .section {
    padding: 3rem 0 !important;
  }
  
  /* Modular sections inner padding */
  .modular-ourwork-inner,
  .modular-blog-inner,
  .modular-clients-inner,
  .modular-faq-inner,
  .modular-testimonials-inner {
    padding: 0 2em !important;
  }
}

/* Large desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1370px !important;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto ;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden !important;
}

html {
  overflow-x: hidden !important;
}