/* @media (max-width: 768px){
  .team-block-image {
    background-position:0 50%;
  }
} */

.logo-slider {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 3rem 0;
  margin-top: 20px;
  background: #fff;
  /* border-top: 1px solid #eee; */
  /* border-bottom: 1px solid #eee; */
  position: relative;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.logo-slider::before {
  left: 0;
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.logo-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 25s linear infinite;
}

.logo-track img {
  height: 85px;
  margin: 0 3rem;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.2);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* CUSTOM TEAM STYLES */
/* Base Styles */

.team-container {
  margin: 0 auto;
  margin-top: 50px;
  padding: 40px 16px;
  max-width: 1180px;
}

/* Header/Bio Section */
.profile-header {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.profile-image {
  position: sticky;
  top: 95px;
  align-self: flex-start;
}

.profile-image img {
  width: 350px;
  height: auto;
  display: block;
}

.profile-intro {
  flex: 1;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

h1 {
  font-size: 32px;
  color: #333;
  margin: 0;
  font-weight: 400;
}

.job-title {
  color: #d19a5e; /* Gold/Tan color from original */
  font-size: 18px;
  margin-top: 5px;
  margin-bottom: 25px;
}

.linkedin-icon {
  background-color: #f0f0f0;
  color: #333;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 14px;
}

.bio p {
  text-align: justify;
  font-size: 18px;
  margin-bottom: 20px;
  color: #666;
}

/* Divider */
.divider {
  border: 0;
  border-top: 1px solid #cd9c0d;
  margin: 40px 0;
}

@media (max-width: 768px) {
  .divider {
    margin: 10px 0;
  }
}

/* Details Grid */
.profile-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

h3 {
  font-size: 22px;
  color: #444;
  font-weight: 500;
  margin-bottom: 20px;
}

.details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 60px;
  font-size: 15px;
  color: #666;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .details-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* List Styling */
.expertise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-list.expertise {
  font-size: 15px;
  color: #333;
  margin-top: -10px !important;
  position: relative;
  padding-left: 15px;
}

.expertise-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  font-size: 12px;
}

/* Links */

.contact-section {
  margin-top: 50px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
  }

  .profile-image {
    position: static !important;
    top: auto !important;
    align-self: auto !important;
  }

  .profile-image img {
    width: 100%;
  }

  .profile-details {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Custom Footer Styles */
.d-footer {
  background-color: #ffffff;
  padding: 80px 0 40px 0;
  color: #000000;
}

/* Grid Layout */
.d-footer-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

/* Brand Section */
.d-footer-logo {
  margin-left: -18px;
  width: 200px;
  max-height: 100px;
}

@media (max-width: 768px) {
  .d-footer-logo {
    width: 200px;
    max-height: 100px;
  }
}

.d-brand-info p {
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
  max-width: 350px;
}

/* Headings with Mustard Underline */
.d-footer-heading {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #cd9c0d; /* Independent Hex Code */
  display: block;
}

/* Navigation Links */
.d-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.d-footer-links a {
  text-decoration: none;
  color: #000000 !important;
  font-size: 14px;
  transition: color 0.2s;
}

.d-footer-links a:hover {
  color: #cd9c0d !important;
}

.d-footer-link {
  color: #cd9c0d;
}

/* Social & Contact */
.d-social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.d-social-btn {
  background-color: #cd9c0d;
  color: #ffffff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 16px;
  transition: opacity 0.2s;
}

.d-social-btn:hover {
  opacity: 0.9;
}

.d-contact-details p {
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 500;
}

.d-contact-details a {
  color: #000000;
  text-decoration: none;
}

/* Bottom Branding Section */
.d-footer-branding {
  margin-top: 20px;
  text-align: center;
}

.d-branding-divider {
  height: 1px;
  background-color: #cd9c0d;
  margin-bottom: 40px;
}

.d-branding-logos {
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-vertical-divider {
  width: 1px;
  height: 100px;
  background-color: #888888;
}

/* Mobile View */
@media (max-width: 768px) {
  .d-footer-top-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: left;
  }

  .d-brand-info p {
    max-width: 100%;
  }

  .d-footer-branding {
    margin-top: 80px;
  }

  .d-branding-logos {
    flex-direction: column;
    gap: 30px;
  }

  .d-vertical-divider {
    width: 60px;
    height: 1px;
    background-color: #888888;
  }
}

/* CUSTOM CONTACT FORM STYLES */
/* Info Section */
.d-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.d-form-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.d-info-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.d-info-header {
  margin-bottom: 45px;
}

.d-header-full {
  text-align: center;
}

.d-header-full h2 {
  margin-bottom: 20px;
}

.d-header-full p {
  color: #888;
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.d-badge {
  background-color: #fffcf0;
  color: #d19a5e;
  border: 1px solid #d19a5e;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 25px;
}

.d-main-title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  color: #232d37;
  margin: 0;
}

/* Contact Form Layout - 40/60 Split */
.d-contact-form-layout-40-60 {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 60px;
  margin-top: 40px;
}

.d-contact-info {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.d-contact-info-left {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 40px;
}

.d-form-container-right {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 40px;
}

/* Four Column Contact Grid */
.d-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.d-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.d-col-header i {
  font-size: 18px;
  color: #232d37;
}

.d-col-header h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  color: #232d37;
}

.d-col-divider {
  width: 100%;
  height: 1.5px;
  background-color: #232d37; /* Dark line under titles */
  margin-bottom: 10px;
}

.d-contact-col p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

.d-contact-col a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.d-contact-col a:hover {
  color: #d19a5e;
}

/* Responsive adjustment */
@media (max-width: 991px) {
  .d-contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
  .d-contact-form-layout-40-60 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .d-form-container-right {
    padding: 30px;
  }
}

/* Map Section */
.d-map-section {
  position: relative;
  margin-top: 80px;
}

.d-map-form-section {
  position: relative;
}

.d-map-wrapper {
  height: 500px;
  position: relative;
  filter: sepia(20%);
  opacity: 0.9;
}
.d-map-pin {
  position: absolute;
  top: 51%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.d-pin-content {
  background: #fff;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.d-pin-btn {
  background: #232d37;
  color: #fff;
  padding: 5px 15px;
  font-size: 11px;
  text-decoration: none;
}

.form-input {
  width: 100%;
  padding: 18px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #d19a5e;
}

.d-form-overlay {
  background: transparent;
  padding: 0;
}

.d-form-container-right .d-form-overlay {
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.d-form-header {
  margin-bottom: 30px;
}

.d-form-header h3 {
  font-size: 28px;
  font-weight: 600;
  color: #232d37;
  margin: 0;
}
.d-form-icon {
  font-size: 40px;
  color: #ddd;
}

.d-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

@media (max-width: 768px) {
  .d-form-row {
    grid-template-columns: 1fr;
  }
}

.d-contact-form input,
.d-contact-form textarea {
  width: 100%;
  padding: 18px;
  margin-bottom: 25px;
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 4px;
}
.d-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}
.d-form-footer p {
  font-size: 13px;
  color: #999;
  flex: 1;
  line-height: 1.5;
}
.d-btn-send {
  background: #cd9c0d;
  border: 1px solid #cd9c0d;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.d-btn-send:hover {
  border: 1px solid #b8860b;
  color: #b8860b;
  background: transparent;
}

/* Form message styles */
.d-form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.d-form-message.success {
  background-color: #fffcf0;
  border: 1px solid #cd9c0d;
  color: #cd9c0d;
}

.d-form-message.error {
  background-color: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

/* Service slider arrows - mustard color */
.service-slider-arrow-mustard {
  background-color: #cd9c0d !important;
  border-color: #cd9c0d !important;
}

.service-slider-arrow-mustard:hover {
  background-color: #b8860b !important;
  border-color: #b8860b !important;
}

.service-slider-arrow-mustard .slider-arrow-icon {
  color: white !important;
}

@media (max-width: 768px) {
  .d-contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .d-main-title {
    font-size: 42px;
  }
  .d-header-full p {
    font-size: 16px;
  }

  /* Form mobile styles */
  .d-form-overlay {
    width: 100%;
    padding: 15px 15px;
    margin-top: -100px;
  }

  .d-form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  .d-form-header p {
    font-size: 24px;
  }
  .d-form-icon {
    font-size: 32px;
  }
  .d-form-row {
    display: block;
  }
  .d-contact-form input {
    display: block;
    width: 100%;
    margin-bottom: 25px;
  }
  .d-form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .d-form-footer p {
    font-size: 12px;
  }
  .d-btn-send {
    width: 100%;
    padding: 18px;
  }
}

/* Related Cases Styles */
.related-cases {
  display: flex;
  margin-top: 10px;
  flex-direction: column;
  gap: 20px;
}

.related-case-item {
  background: #fff;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.related-case-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-case-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.related-case-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-case-content {
  padding: 15px;
}

.related-case-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #000;
}

.related-case-content p {
  text-transform: none;
  font-size: 16px;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .related-case-image {
    height: 80px;
  }

  .related-case-content {
    padding: 10px;
  }

  .related-case-content h4 {
    font-size: 14px;
  }

  .related-case-content p {
    font-size: 12px;
  }
}

/* Team banner background image */
.team-banner-bg {
  background-image: url("/assets/images/landing-hero-2.jpg");
  background-size: cover;
  background-position: center;
}

.services-banner-bg {
  background-image: url("/assets/images/landing-hero-1.jpg");
  background-size: cover;
  background-position: center;
}

/* Responsive hero image for team section */
@media (max-width: 480px) {
  .wrapper-with-bg-image .image-absolute {
    content: url("/assets/images/landing-hero-mobile.png");
  }

  .team-banner-bg {
    background-image: url("/assets/images/landing-hero-mobile.png");
  }

  .services-banner-bg {
    background-image: url("/assets/images/landing-hero.jpg");
  }
}

/* Ensure slider arrows are visible by default */
.banner-slider-arrow {
  display: flex !important;
}

/* Hide slider arrows on very large screens */
@media (min-width: 1921px) {
  .banner-slider-arrow {
    display: none !important;
  }
}

/* Dynamic nav contact button - switches between secondary and primary based on scroll */
.navbar-transparent .nav-contact-button {
  border: 1px solid var(--primary-mustard);
  background-color: var(--primary-mustard);
  color: var(--primary-white);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* Service card button - switches colors when card is hovered */
.service-item-wrap:hover .secondary-button {
  background-color: var(--primary-white) !important;
  color: var(--primary-mustard) !important;
  border: 1px solid var(--primary-white) !important;
}

.service-item-wrap:hover .secondary-button:hover {
  background-color: transparent !important;
  color: var(--primary-white) !important;
  border: 1px solid var(--primary-white) !important;
}

.navbar-transparent .nav-contact-button:hover {
  background-color: transparent;
  color: var(--primary-mustard);
  border: 1px solid var(--primary-mustard);
}

/* When navbar has scrolled (w--nav-menu-open or after scroll) */
.w--nav-menu-open .nav-contact-button,
.navbar-scrolled .nav-contact-button {
  border: 1px solid var(--primary-mustard);
  background-color: var(--primary-white);
  color: var(--primary-mustard);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.w--nav-menu-open .nav-contact-button:hover,
.navbar-scrolled .nav-contact-button:hover {
  background-color: var(--primary-mustard) !important;
  color: var(--primary-white) !important;
  border: 1px solid var(--primary-white) !important;
}

/* Team category headings */
.team-category-section {
  margin-bottom: 60px;
}

.team-category-heading {
  font-size: 36px;
  font-weight: 300;
  color: var(--primary-dark);
  margin-bottom: 40px;
  text-align: center;
}

/* Team image consistent sizing */
.team-item .image-cover {
  width: 400px !important;
  height: 300px !important;
  object-fit: cover !important;
  object-position: top !important;
  max-width: 100% !important;
}

.team-photo-link {
  width: 300px !important;
  height: 200px !important;
  overflow: hidden !important;
  display: block !important;
  max-width: 100% !important;
}

/* Case card text line clamping (only for cases, not services) */
.service-item-wrap .text-white {
  line-height: 1.5;
}

/* Apply line clamping only when service cards are used for cases */
.section:not(.services-section) .service-item-wrap .text-white {
  display: -webkit-box;
  display: -moz-box;
  display: box;
  -webkit-line-clamp: 3;
  -moz-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  max-height: 4.5em;
}

/* Footer copyright strip */
.d-footer-copyright {
  background-color: #000;
  padding: 15px 0;
  text-align: center;
  width: 100%;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.d-footer-copyright .base-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.d-footer-copyright-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.d-footer-copyright p {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

.d-footer-copyright a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.d-footer-copyright a:hover {
  color: #fff !important;
}

/* Responsive team images */
@media (max-width: 767px) {
  .team-item .image-cover {
    width: 300px !important;
    height: 225px !important;
  }

  .team-photo-link {
    width: 300px !important;
    height: 225px !important;
  }
}

@media (max-width: 479px) {
  .team-item .image-cover {
    width: 250px !important;
    height: 188px !important;
  }

  .team-photo-link {
    width: 250px !important;
    height: 188px !important;
  }
}

/* Full width case content */
.service-details-content-wrapper.full-width {
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* Custom sticky about section */
.d-about-sticky-container {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  position: relative;
}

.d-about-sticky-left {
  flex: 0 0 45%;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  height: fit-content;
}

.d-about-sticky-left h2 {
  font-size: 35px;
  margin: 0;
  line-height: 1.4;
}

.d-about-content-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.d-about-content-right p {
  margin-top: 0;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .d-about-sticky-container {
    gap: 40px;
  }

  .d-about-sticky-left {
    flex: 0 0 40%;
    top: 100px;
  }
}

@media (max-width: 767px) {
  .d-about-sticky-container {
    flex-direction: column;
    gap: 30px;
  }

  .d-about-sticky-left {
    position: relative;
    top: 0;
    flex: 1 1 100%;
  }

  .d-about-content-right {
    flex: 1 1 100%;
  }
}


