:root {
  --why-carbyne-teal: #1eb9b4;
  --why-carbyne-light-grey: #ebebeb;
}

.why-carbyne-section {
  width: 100%;
  background: #f8f8f8;
  padding: 64px 0;
}

.why-carbyne-wrapper {
  position: relative;
  width: min(95%, 1200px);
  margin: 0 auto;
  background-color: var(--why-carbyne-light-grey);
  border-radius: 20px;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.why-carbyne-content-left {
  width: 50%;
  padding: 0 60px;
  z-index: 1;
  box-sizing: border-box;
}

.why-carbyne-heading {
  margin: 0 0 20px 0;
  color: #111111;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.why-carbyne-description {
  max-width: 440px;
  margin: 0 0 35px 0;
  color: #444444;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.why-carbyne-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.why-carbyne-actions .button {
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.why-carbyne-actions .button-primary {
  background: var(--why-carbyne-teal);
  border: 1.5px solid var(--why-carbyne-teal);
  color: #ffffff;
  box-shadow: none;
}

.why-carbyne-actions .button-primary:hover {
  background: #18a9a4;
  border-color: #18a9a4;
}

.why-carbyne-button-secondary {
  border: 1px solid rgba(35, 72, 91, 0.22);
  background-color: transparent;
  color: var(--color-text-dark, #0a2e36);
  backdrop-filter: none;
}

.why-carbyne-button-secondary:hover {
  border-color: rgba(35, 72, 91, 0.34);
  background-color: rgba(35, 72, 91, 0.04);
  color: var(--color-text-dark, #0a2e36);
}

.why-carbyne-photo-card {
  position: absolute;
  right: 0;
  top: -20px;
  bottom: -20px;
  width: 52%;
  background-image: url('/assets/images/sections/why-carbyne-accounting.jpeg');
  background-size: cover;
  background-position: 38% center;
  border-radius: 20px;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.why-carbyne-photo-overlay {
  position: absolute;
  inset: 0;
  padding: 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  background:
    linear-gradient(
      90deg,
      rgba(5, 21, 31, 0.74) 0%,
      rgba(8, 38, 51, 0.52) 28%,
      rgba(8, 38, 51, 0.32) 56%,
      rgba(8, 38, 51, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 95, 102, 0.10) 0%,
      rgba(8, 95, 102, 0.18) 100%
    );
}

.why-carbyne-photo-title {
  margin: 0;
  color: #ffffff;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.why-carbyne-highlight {
  color: var(--why-carbyne-teal);
  font-style: italic;
}

.why-carbyne-hashtag {
  position: absolute;
  left: 60px;
  bottom: 40px;
  color: var(--carbyne-teal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
}

@media (max-width: 1200px) {
  .why-carbyne-content-left {
    width: 48%;
    padding: 0 44px;
  }

  .why-carbyne-photo-card {
    width: 54%;
  }

  .why-carbyne-photo-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 991px) {
  .why-carbyne-section {
    padding: 48px 0;
  }

  .why-carbyne-wrapper {
    width: min(94%, 1200px);
    min-height: 440px;
  }

  .why-carbyne-content-left {
    width: 46%;
    padding: 0 32px;
  }

  .why-carbyne-heading {
    font-size: 1.95rem;
  }

  .why-carbyne-description {
    font-size: 0.96rem;
  }

  .why-carbyne-photo-card {
    width: 56%;
    top: -14px;
    bottom: -14px;
  }

  .why-carbyne-photo-overlay {
    padding: 42px;
  }

  .why-carbyne-photo-title {
    font-size: 2.8rem;
  }

  .why-carbyne-hashtag {
    left: 42px;
    bottom: 28px;
  }
}

@media (max-width: 767px) {
  .why-carbyne-section {
    padding: 36px 0;
  }

  .why-carbyne-wrapper {
    width: calc(100% - 32px);
    min-height: auto;
    padding: 0;
    display: flex;
    flex-direction: column-reverse;
    overflow: hidden;
  }

  .why-carbyne-content-left {
    width: 100%;
    padding: 30px 22px 28px 22px;
  }

  .why-carbyne-heading {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }

  .why-carbyne-description {
    max-width: 100%;
    margin-bottom: 24px;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .why-carbyne-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .why-carbyne-actions .button,
  .why-carbyne-actions .button-primary,
  .why-carbyne-actions .button-secondary,
  .why-carbyne-button-secondary {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-self: stretch;
    justify-content: center;
    box-sizing: border-box;
  }

  .why-carbyne-photo-card {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 320px;
    border-radius: 20px 20px 0 0;
    box-shadow: none;
  }

  .why-carbyne-photo-overlay {
    inset: 0;
    padding: 28px 22px 56px 22px;
    background:
      linear-gradient(
        90deg,
        rgba(5, 21, 31, 0.74) 0%,
        rgba(8, 38, 51, 0.52) 28%,
        rgba(8, 38, 51, 0.32) 56%,
        rgba(8, 38, 51, 0.18) 100%
      ),
      linear-gradient(
        180deg,
        rgba(8, 95, 102, 0.10) 0%,
        rgba(8, 95, 102, 0.18) 100%
      );
  }

  .why-carbyne-photo-title {
    font-size: 2.35rem;
    line-height: 0.98;
  }

  .why-carbyne-hashtag {
    left: 22px;
    bottom: 22px;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 575px) {
  .why-carbyne-wrapper {
    width: calc(100% - 24px);
  }

  .why-carbyne-content-left {
    padding: 26px 18px 24px 18px;
  }

  .why-carbyne-heading {
    font-size: 1.55rem;
  }

  .why-carbyne-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .why-carbyne-actions .button,
  .why-carbyne-actions .button-primary,
  .why-carbyne-actions .button-secondary,
  .why-carbyne-button-secondary {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-self: stretch;
    justify-content: center;
    box-sizing: border-box;
  }

  .why-carbyne-photo-card {
    min-height: 280px;
  }

  .why-carbyne-photo-overlay {
    inset: 0;
    padding: 24px 18px 52px 18px;
  }

  .why-carbyne-photo-title {
    font-size: 2rem;
  }

  .why-carbyne-hashtag {
    left: 18px;
    bottom: 18px;
  }
}