/* ===================================
   About Page Image Fixes with HAD Branding
   =================================== */

/* HAD Brand Colors */
:root {
  --had-primary-orange: #FF6600;
  --had-primary-blue: #1E5F99;
  --had-secondary-blue: #2E9BD8;
  --had-accent-orange: #FF8533;
  --had-text-gray: #6B6B6B;
  --had-white: #FFFFFF;
}

/* Fix image dimensions in About section */
.about1 .images-all {
  height: auto !important;
  min-height: 400px;
}

.about1 .images-all .image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(30, 95, 153, 0.15);
}

.about1 .images-all .image img {
  width: 100% !important;
  height: 400px !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.about1 .images-all .image:hover img {
  transform: scale(1.05);
}

/* Fix Vision & Mission section images */
.about-page-advicx .images-all {
  height: auto !important;
  position: relative;
}

.about-page-advicx .images-all .image1,
.about-page-advicx .images-all .image2 {
  position: relative !important;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(30, 95, 153, 0.15);
}

.about-page-advicx .images-all .image1 {
  margin-bottom: 20px;
}

.about-page-advicx .images-all .image1 img,
.about-page-advicx .images-all .image2 img {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.about-page-advicx .images-all img:hover {
  transform: scale(1.05);
}

/* Fix image2 positioning */
.about-page-advicx .images-all .image2 {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
}

/* Apply HAD brand colors to progress bars */
.about-page-progress .progress-bar {
  background-color: var(--had-primary-orange) !important;
}

/* Apply HAD colors to icons and text */
.about1-list ul li span {
  background-color: var(--had-primary-orange) !important;
  color: var(--had-white) !important;
}

.about1-list ul li span i {
  color: var(--had-white) !important;
}

/* Apply HAD colors to theme buttons */
.theme-btn1 {
  background-color: var(--had-primary-orange) !important;
  color: var(--had-white) !important;
  border: 2px solid var(--had-primary-orange) !important;
}

.theme-btn1:hover {
  background-color: transparent !important;
  color: var(--had-primary-orange) !important;
}

/* Core Values section with HAD colors */
.values-box .icon i {
  color: var(--had-primary-orange) !important;
}

.values-box:nth-child(2) .icon i {
  color: var(--had-primary-blue) !important;
}

.values-box:nth-child(3) .icon i {
  color: var(--had-accent-orange) !important;
}

/* HAD Clients section styling */
.about-page-brand {
  background-color: #f8f9fa !important;
}

.client-list p {
  background-color: var(--had-white);
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.client-list p:hover {
  border-color: var(--had-primary-orange);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.1);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .about1 .images-all .image img {
    height: 350px !important;
  }
  
  .about-page-advicx .images-all .image1 img,
  .about-page-advicx .images-all .image2 img {
    height: 250px !important;
  }
}

@media (max-width: 767px) {
  .about1 .images-all .image img {
    height: 300px !important;
  }
  
  .about-page-advicx .images-all .image1 img,
  .about-page-advicx .images-all .image2 img {
    height: 200px !important;
  }
  
  .about-page-advicx .images-all .image1 {
    margin-bottom: 15px;
  }
}

/* Apply HAD orange to section backgrounds */
.sub-title1.sec-bg2 {
  background-color: var(--had-primary-orange) !important;
  color: var(--had-white) !important;
}

/* Fix shape positioning */
.about1 .images-all .shape1,
.about1 .images-all .shape2,
.about1 .images-all .shape3 {
  z-index: -1;
  opacity: 0.5;
}

.about-page-advicx .images-all .shape {
  position: absolute !important;
  top: -20px !important;
  left: 50% !important;
  transform: translateX(-50%);
  z-index: -1;
  opacity: 0.3;
}

/* Ensure proper image container styling */
.images-all {
  position: relative;
}

/* Additional hover effects */
.about1 .images-all .image::after,
.about-page-advicx .images-all .image1::after,
.about-page-advicx .images-all .image2::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(30, 95, 153, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.about1 .images-all .image:hover::after,
.about-page-advicx .images-all .image1:hover::after,
.about-page-advicx .images-all .image2:hover::after {
  opacity: 1;
}

/* Fix any text overlap issues */
.about1 .heading1,
.about-page-advicx .heading1 {
  position: relative;
  z-index: 10;
}

/* Ensure consistent spacing */
.about1,
.about-page-advicx {
  padding: 80px 0;
}

@media (max-width: 767px) {
  .about1,
  .about-page-advicx {
    padding: 60px 0;
  }
}