/* Service List Design (Extracted from what-we-do.php) */
:root {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-accent: #fecd04;
}

/* Base Styles */
.what-we-do-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.4s ease;
  padding: 0;
  margin: 0;
  list-style: none; /* In case used in ul/li */
}

/* Service Page Specific Adjustment */
.page-content .what-we-do-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.what-we-do-item-content {
  display: flex;
  align-items: flex-start;
  padding: 20px 0; /* Default padding */
}

.what-we-do-number {
  font-size: 20px;
  margin-right: 15px;
  margin-top: 6px;
  color: #fff;
  opacity: 0.2;
  font-weight: 500;
  min-width: 30px;
}

/* Name & Description Container */
.what-we-do-text-wrapper {
  flex: 1;
  padding-right: 20px;
  z-index: 2; /* Ensure text is above shape if they overlap */
  position: relative;
}

.what-we-do-name {
  font-size: 35px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  transition: color 0.3s ease;
  line-height: 1.2;
}

.what-we-do-item a {
    text-decoration: none;
}

.what-we-do-description {
  max-width: 75%;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #888;
  margin-top: 20px;
  
  /* Hover settings */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Shape Adjustment */
.what-we-do-visual-wrapper {
  position: absolute;
  right: 150px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.what-we-do-shape {
  width: 150px;
  height: 150px;
  background: #c4c4c4;
  border-radius: 40px;
  transform: rotate(45deg) scale(0.8);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden; /* Mask the image */
}

.service-shape-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(-45deg) scale(1.3); /* Counter-rotate and scale up to cover corners */
  display: block;
}

/* Arrow adjustment */
.what-we-do-arrow {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 40px;
  margin-top: 15px;
  opacity: 0.8;
  transition: 0.3s;
  flex-shrink: 0; 
}

.what-we-do-arrow svg {
    stroke: #000; /* Ensure icon is black on gold */
}

/* --- HOVER EFFECTS --- */

.what-we-do-item:hover .what-we-do-name {
  color: var(--color-accent);
}

.what-we-do-item:hover .what-we-do-description {
  opacity: 1;
  max-height: 300px; /* Increased to fit excerpt */
  margin-top: 30px;
}

.what-we-do-item:hover .what-we-do-shape {
  opacity: 1;
  transform: rotate(-10deg) scale(1);
}

.what-we-do-item:hover .what-we-do-arrow {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .what-we-do-header {
    margin-bottom: 30px;
    padding: 20px 0;
  }

  .what-we-do-title {
    font-size: 2rem;
  }

  .what-we-do-item-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 0;
    position: relative;
  }

  .what-we-do-number {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .what-we-do-text-wrapper {
    width: 100%;
    padding-right: 50px; /* Space for arrow */
  }

  .what-we-do-name {
    font-size: 24px;
  }

  .what-we-do-description {
    max-width: 100%;
    font-size: 1rem;
    margin-top: 15px;
  }

  .what-we-do-visual-wrapper {
    display: none; 
  }

  .what-we-do-arrow {
    position: absolute;
    top: 30px; /* Aligned with padding */
    right: 0;
    margin: 0;
    width: 32px;
    height: 32px;
  }
  
  .what-we-do-arrow svg {
    width: 18px;
    height: 18px;
  }

  /* Interaction on Mobile */
  .what-we-do-item:hover .what-we-do-description,
  .what-we-do-item:active .what-we-do-description,
  .what-we-do-item:focus-within .what-we-do-description {
     max-height: 500px;
     opacity: 1;
  }
}
