/* Arabic Custom Styles for MATRIX SYSTEMS */

/* Arabic Font Support */
[lang="ar"], [dir="rtl"] {
  font-family: "Cairo", "Public Sans", Helvetica, Arial, sans-serif !important;
}

[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] h5, [lang="ar"] h6,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: "Cairo", "Orbitron", Helvetica, Arial, sans-serif !important;
}

/* RTL specific adjustments */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .swiper-button-prev {
  right: 10px;
  left: auto;
}

[dir="rtl"] .swiper-button-next {
  left: 10px;
  right: auto;
}

/* Partners and Clients Sections Enhancement */
.partners-section, .clients-section {
  padding: 80px 0;
}

.partners-section .bg-dark-2 {
  background: linear-gradient(135deg, #1a2331 0%, #283243 100%) !important;
}

.clients-section .bg-dark {
  background: linear-gradient(135deg, #010a1a 0%, #1a2331 100%) !important;
}

.partners-section img, .clients-section img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: brightness(1) invert(0);
  transition: all 0.3s ease;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.partners-section img:hover, .clients-section img:hover {
  filter: brightness(1.1) invert(0);
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Standardized image containers */
.partner-item, .client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin: 10px 0;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure images are visible */
.partner-item img, .client-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Enhanced section titles */
.partners-section .subtitle,
.clients-section .subtitle {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.partners-section h2,
.clients-section h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
}

/* Footer enhancement */
footer {
  background: linear-gradient(135deg, #010a1a 0%, #1a2331 100%) !important;
  border-top: 3px solid var(--primary-color);
}

footer .widget h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
}

footer .widget p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

footer .social-icons a {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: all 0.3s ease;
}

footer .social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Enhanced buttons for Arabic */
.btn-main {
  font-family: "Cairo", sans-serif;
  font-weight: 600;
}

/* Improved spacing for Arabic text */
[dir="rtl"] .container {
  direction: rtl;
}

[dir="rtl"] .row {
  direction: rtl;
}

/* RTL overrides for utility spacing used in CTA tiles and feature blocks */
[dir="rtl"] .ms-90px { margin-left: 0 !important; margin-right: 90px !important; }
[dir="rtl"] .ps-90 { padding-left: 0 !important; padding-right: 90px !important; }

/* Position absolute middle blocks from the right in RTL to avoid icon overlap */
[dir="rtl"] .abs-middle { right: 0; left: auto; }

/* Force LTR rendering for mixed-direction strings like phone numbers */
.force-ltr { direction: ltr !important; unicode-bidi: isolate; text-align: left; display: inline-block; }

/* CTA tiles spacing: ensure gap between icon and text in RTL */
[dir="rtl"] section.pt60.pb60 a > i { margin-left: 16px; margin-right: 0; }
[dir="rtl"] section.pt60.pb60 .abs-middle { margin-right: 120px !important; }

/* RTL: main menu order and alignment */
[dir="rtl"] #mainmenu { direction: rtl; }
[dir="rtl"] #mainmenu li { float: right; }
[dir="rtl"] #mainmenu>li { margin-left: 30px; margin-right: 0; }
[dir="rtl"] #mainmenu>li:last-child { margin-left: 0; }
[dir="rtl"] .header-col-mid #mainmenu { right: 20px; left: auto; }
[dir="rtl"] #mainmenu li ul { right: 0; left: auto; text-align: right; direction: rtl; }
[dir="rtl"] #mainmenu li ul li { text-align: right; }
[dir="rtl"] #mainmenu li ul li a { text-align: right; padding-right: 20px; padding-left: 10px; }
[dir="rtl"] #mainmenu li ul ul:not(.ul-list) { right: 100%; left: auto; margin-right: 188px; margin-left: 0; }

/* Light Theme Override - maintaining MATRIX logo colors (red/black) */
.light-scheme {
  background: #ffffff;
  color: #333333;
}

.light-scheme body {
  background: #ffffff;
  color: #333333;
}

/* Header light theme */
.light-scheme header {
  background: #ffffff !important;
  border-bottom: 1px solid #e0e0e0;
}

.light-scheme #topbar {
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.light-scheme #topbar a {
  color: #333333 !important;
}

/* Menu light theme */
.light-scheme #mainmenu a {
  color: #333333 !important;
}

.light-scheme #mainmenu li:hover > a,
.light-scheme #mainmenu li a.active {
  color: #dc2626 !important; /* Red from logo */
}

.light-scheme #mainmenu li ul {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.light-scheme #mainmenu li li a {
  color: #333333 !important;
  border-bottom: 1px solid #f0f0f0;
}

.light-scheme #mainmenu li li a:hover {
  color: #dc2626 !important;
  background: #f8f9fa;
}

/* Sections light theme */
.light-scheme section {
  background: #ffffff;
  color: #333333;
}

.light-scheme .bg-dark-2 {
  background: #f8f9fa !important;
  color: #333333;
}

.light-scheme .bg-dark {
  background: #ffffff !important;
  color: #333333;
}

/* Text colors */
.light-scheme h1, .light-scheme h2, .light-scheme h3, 
.light-scheme h4, .light-scheme h5, .light-scheme h6 {
  color: #1a1a1a !important;
}

.light-scheme p {
  color: #555555;
}

.light-scheme .subtitle {
  color: #dc2626 !important; /* Red from logo */
}

/* Buttons light theme */
.light-scheme .btn-main {
  background: #dc2626 !important; /* Red from logo */
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

.light-scheme .btn-main:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

.light-scheme .btn-line {
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}

.light-scheme .btn-line:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* Feature boxes light theme */
.light-scheme .feature-box.f-boxed {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.light-scheme .feature-box .i-icon {
  background: #dc2626 !important; /* Red from logo */
}

/* Cards and tiles light theme */
.light-scheme .bg-dark-2.p-40 {
  background: #ffffff !important;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.light-scheme .bg-dark-2.p-40:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Counter boxes light theme */
.light-scheme .counter-box {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Testimonials light theme */
.light-scheme .owl-carousel .item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

/* Footer light theme to match overall design */
.light-scheme footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  color: #333333;
  border-top: 3px solid #dc2626 !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.light-scheme footer .widget h5 {
  color: #1a1a1a !important;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid #dc2626;
  padding-bottom: 8px;
  display: inline-block;
}

.light-scheme footer .widget p {
  color: #555555 !important;
  line-height: 1.8;
}

.light-scheme footer .widget a {
  color: #666666 !important;
  transition: color 0.3s ease;
}

.light-scheme footer .widget a:hover {
  color: #dc2626 !important;
}

.light-scheme footer .social-icons a {
  background: #ffffff !important;
  border: 2px solid #e0e0e0;
  color: #666666 !important;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.light-scheme footer .social-icons a:hover {
  background: #dc2626 !important;
  border-color: #dc2626;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.light-scheme footer .subfooter {
  background: #ffffff !important;
  border-top: 1px solid #e0e0e0;
  color: #666666;
}

.light-scheme footer .subfooter a {
  color: #666666 !important;
}

.light-scheme footer .subfooter a:hover {
  color: #dc2626 !important;
}

/* Footer statistics styling for light theme */
.light-scheme footer .fw-bold.text-white {
  color: #dc2626 !important;
  font-size: 24px;
  font-weight: 800;
}

.light-scheme footer .text-muted {
  color: #666666 !important;
  font-weight: 500;
}

.light-scheme footer .fw-bold.text-white i {
  color: #dc2626 !important;
}

/* Contact info icons in footer */
.light-scheme footer .id-color {
  color: #dc2626 !important;
}



/* Partners and Clients sections - light theme adjustments */
.light-scheme .partners-section, .light-scheme .clients-section {
  background: #f8f9fa !important;
}

.light-scheme .partners-section img, .light-scheme .clients-section img {
  filter: brightness(1) invert(0) !important;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-scheme .partners-section img:hover, .light-scheme .clients-section img:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: #dc2626;
}

/* CTA tiles light theme */
.light-scheme section.pt60.pb60 a {
  background: #ffffff !important;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #333333 !important;
}

.light-scheme section.pt60.pb60 a:hover {
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
  border-color: #dc2626;
}

.light-scheme section.pt60.pb60 a i {
  color: #dc2626 !important;
}

/* Accordion light theme */
.light-scheme .accordion .accordion-section-title {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.light-scheme .accordion .accordion-section-content {
  background: #ffffff;
  color: #555555;
  border: 1px solid #e0e0e0;
}

/* Fix service icons visibility in light theme */
.light-scheme .slider-extra img,
.light-scheme section img[src*="icons"] {
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Ensure service icons are colored properly */
.light-scheme .slider-extra img,
.light-scheme .bg-dark-2 img[src*="icons"] {
  filter: brightness(0) saturate(100%) invert(25%) sepia(90%) saturate(3000%) hue-rotate(345deg) brightness(95%) contrast(90%) !important;
}

.light-scheme .slider-extra img:hover,
.light-scheme .bg-dark-2:hover img[src*="icons"] {
  filter: brightness(0) saturate(100%) invert(15%) sepia(90%) saturate(4000%) hue-rotate(345deg) brightness(85%) contrast(100%) !important;
}

/* Enhanced slider text visibility and contrast */
.swiper-slide .sw-caption {
  position: relative;
  z-index: 100;
}

.swiper-slide .sw-overlay {
  background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%) !important;
  opacity: 0.8 !important;
}

.swiper-slide .subtitle {
  color: #dc2626 !important;
  font-weight: 700 !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
  font-size: 18px !important;
  margin-bottom: 15px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(220, 38, 38, 0.1);
  padding: 8px 16px;
  border-radius: 25px;
  border: 2px solid #dc2626;
  display: inline-block;
}

.swiper-slide h1.cam-style {
  color: #ffffff !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.9) !important;
  font-weight: 800 !important;
  font-size: 3.5rem !important;
  line-height: 1.2 !important;
  margin-bottom: 25px !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  padding: 20px 30px;
  border-radius: 10px;
  border-left: 5px solid #dc2626;
}

.swiper-slide .slider-extra {
  background: rgba(0,0,0,0.6) !important;
  padding: 30px !important;
  border-radius: 15px !important;
  margin-top: 40px !important;
  border: 1px solid rgba(255,255,255,0.2);
  /* backdrop-filter: blur(10px); */
}

.swiper-slide .slider-extra h4 {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  margin-bottom: 10px !important;
}

.swiper-slide .slider-extra p {
  color: #f0f0f0 !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Enhanced button visibility */
.swiper-slide .btn-main {
  background: #dc2626 !important;
  border: 2px solid #dc2626 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 15px 30px !important;
  font-size: 16px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4) !important;
  text-shadow: none !important;
}

.swiper-slide .btn-main:hover {
  background: #ffffff !important;
  color: #dc2626 !important;
  border-color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}

/* Enhanced CCTV Specialist section visibility */
section.bg-color .jarallax {
  position: relative;
}

section.bg-color .jarallax .sw-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.8) 100%) !important;
  opacity: 0.9 !important;
}

section.bg-color .subtitle {
  color: #dc2626 !important;
  font-weight: 700 !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9) !important;
  font-size: 18px !important;
  margin-bottom: 15px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(220, 38, 38, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  border: 2px solid #dc2626;
  display: inline-block;
}

section.bg-color h2 {
  color: #ffffff !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  font-size: 2.5rem !important;
  line-height: 1.3 !important;
  margin-bottom: 25px !important;
  background: rgba(0,0,0,0.5);
  padding: 20px 25px;
  border-radius: 10px;
  border-left: 5px solid #dc2626;
}

section.bg-color .btn-main {
  background: #dc2626 !important;
  border: 2px solid #dc2626 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 15px 30px !important;
  font-size: 16px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5) !important;
  text-shadow: none !important;
}

section.bg-color .btn-main:hover {
  background: #ffffff !important;
  color: #dc2626 !important;
  border-color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
}

/* Team member info styling */
section.bg-color h5 {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  margin-top: 15px !important;
  background: rgba(0,0,0,0.4);
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-block;
}

section.bg-color p.small {
  color: #f0f0f0 !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  background: rgba(220, 38, 38, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0 !important;
}

/* Team image enhancement */
section.bg-color img.img-fluid {
  border: 4px solid #dc2626;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

section.bg-color img.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(220, 38, 38, 0.3);
}

/* Better contrast for dark backgrounds */
.bg-dark-2, .bg-dark {
  position: relative;
}

.bg-dark-2::before, .bg-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  pointer-events: none;
}

/* New Portrait Section - Like the image */
section.bg-dark-2.overflow-hidden {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f1419 0%, #1a2331 100%);
  overflow: hidden;
}

/* Portrait Container */
.portrait-container {
  text-align: center;
}

/* Portrait Frame with Red Border */
.portrait-frame {
  position: relative;
  display: inline-block;
  border: 4px solid #dc2626;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
  margin-bottom: 20px;
}

.portrait-img {
  width: 250px;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Technical Text on Frame */
.tech-text {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.8);
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Portrait Info */
.portrait-info h5 {
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.portrait-info p {
  color: #f0f0f0 !important;
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Red Badge */
.red-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.red-dot {
  color: #ffffff;
  margin-left: 8px;
  font-size: 16px;
}

/* Main Heading */
section.bg-dark-2.overflow-hidden h2 {
  color: #ffffff !important;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 30px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

/* Call to Action Button */
section.bg-dark-2.overflow-hidden .btn-main {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 2px solid #dc2626 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 15px 35px !important;
  font-size: 16px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5) !important;
  transition: all 0.3s ease;
}

section.bg-dark-2.overflow-hidden .btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.5) !important;
}

section.bg-dark-2.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, rgba(0, 0, 0, 0.3) 50%, transparent 70%);
  z-index: 0;
}

/* Technical Background Elements */
section.bg-dark-2.overflow-hidden::after {
  content: '01001111 00001011 00011100 00100101 01011010 01100111 10001000 10101101 11010010 11100101';
  position: absolute;
  top: 20px;
  right: 30px;
  color: rgba(255, 255, 255, 0.1);
  font-family: 'Courier New', monospace;
  font-size: 10px;
  line-height: 1.5;
  z-index: 0;
  pointer-events: none;
  transform: rotate(15deg);
}

/* Camera Lens Graphic */
.camera-lens-bg {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.camera-lens-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.camera-lens-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

section.bg-dark-2.overflow-hidden .container {
  position: relative;
  z-index: 10;
  width: 100%;
}

section.bg-dark-2.overflow-hidden .row {
  align-items: center;
  min-height: 60vh;
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child {
  position: relative;
  z-index: 15;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 35, 49, 0.9) 100%);
  padding: 50px 40px;
  border-radius: 25px;
  /* backdrop-filter: blur(20px); */
  border: 3px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  margin: 20px;
  max-width: 600px;
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child .subtitle {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 18px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child .red-accent {
  color: #dc2626 !important;
  font-size: 24px;
  margin-left: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child h2 {
  color: #ffffff !important;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9) !important;
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child .lead {
  color: #f0f0f0 !important;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child .bg-dark {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child .bg-dark:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.6);
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child .ul-style-2 li {
  color: #ffffff !important;
  font-size: 15px;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child .text-red {
  color: #dc2626 !important;
  font-size: 18px;
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child .btn-main {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5) !important;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 35px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

section.bg-dark-2.overflow-hidden .col-lg-6:first-child .btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5) !important;
}

/* Content positioning for dark theme */
section.bg-dark-2.overflow-hidden .col-lg-6.position-lg-absolute {
  z-index: 1;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
}

section.bg-dark-2.overflow-hidden .col-lg-6.position-lg-absolute .image {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* Statistics boxes enhancement */
section.bg-dark-2.overflow-hidden .col-6 .bg-dark {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
  transition: all 0.3s ease;
  border-radius: 15px;
}

section.bg-dark-2.overflow-hidden .col-6 .bg-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.6);
}

section.bg-dark-2.overflow-hidden .col-6 .h4 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

section.bg-dark-2.overflow-hidden .col-6 .small {
  font-size: 14px;
  font-weight: 600;
}

/* Debug styles for images */
.partners-section, .clients-section {
  position: relative;
  z-index: 10;
}

.partners-section .container, .clients-section .container {
  position: relative;
  z-index: 11;
}

/* Ensure images load properly */
img {
  max-width: 100%;
  height: auto;
}

/* Additional debugging for partner/client images */
.partner-item img, .client-item img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}
