/* =========================================================
   Chemistry@BGS — Career profile prototype
   ========================================================= */

.career-profile {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.career-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.career-profile-hero__main,
.career-glance,
.career-profile-section,
.chemistry-action,
.career-fit {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 18px;
}

.career-profile-hero__main {
  padding: 42px 44px 40px;
}

.career-profile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.career-profile-hero h2 {
  margin: 4px 0 10px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.career-profile-subtitle {
  max-width: 720px;
  margin: 0;
  color: #b51f2e;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 750;
  line-height: 1.25;
}

.career-profile-image {
  flex: 0 0 320px;
  max-width: 320px;
}

.career-profile-image img {
  display: block;
  width: 100%;
  height: 220px;

  object-fit: cover;

  border-radius: 16px;
}

.career-profile-intro {
  max-width: 780px;
  margin: 28px 0 24px;

  color: #667085;
  font-size: 1.1rem;
  line-height: 1.65;
}

.career-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.career-profile-tags span {
  padding: 7px 11px;

  background: #f4f4f4;
  color: #4f5968;
  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 700;
}

.career-glance {
  padding: 30px;

  background: #fffaf0;

  border: 1px solid #eadcae;
  border-top: 5px solid #d7aa24;
}

.career-glance__eyebrow {
  margin: 0 0 18px;

  color: #b51f2e;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.career-glance__item {
  padding: 16px 0;
  border-top: 1px solid #ececec;
}

.career-glance__item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.career-glance__label {
  display: block;
  margin-bottom: 4px;

  color: #707887;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.career-glance strong {
  display: block;
  line-height: 1.35;
}

.career-glance small {
  display: block;
  margin-top: 4px;
  color: #7b8290;
  line-height: 1.35;
}

.career-profile-section {
  margin-top: 28px;
  padding: 38px 40px;
}

.career-section-heading > p:last-child {
  margin: 0;
  color: #667085;
  font-size: 1.02rem;
  line-height: 1.6;
}

.career-section-heading h2,
.chemistry-action h2,
.career-fit h2 {
  margin: 5px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.career-section-heading > p:last-child {
  margin: 0;
  color: #667085;
  font-size: 1.02rem;
  line-height: 1.6;
}

.career-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.career-action-card {
  padding: 22px;

  background: #f8f8f8;
  border-radius: 14px;
}

.career-action-number {
  margin-bottom: 16px;

  color: #b51f2e;
  font-weight: 850;
  font-size: 0.85rem;
}

.career-action-card h3 {
  margin: 0 0 8px;
}

.career-action-card p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.chemistry-action {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 30px;

  margin-top: 28px;
  padding: 36px 40px;

  background: #fff7f7;
  border-color: #eacdd0;
  border-left: 7px solid #b51f2e;
}

.chemistry-action__heading {
  align-self: center;
}

.chemistry-action__body > p {
  margin: 22px 0 0;
  color: #5e6674;
  line-height: 1.65;
}

.chemistry-action__example {
  display: flex;
  align-items: center;
  gap: 10px;
}

.molecule-step {
  display: grid;
  gap: 8px;
  justify-items: center;
  flex: 1;

  padding: 16px 10px;

  background: #fff;
  border: 1px solid #ecd9db;
  border-radius: 12px;

  text-align: center;
  font-size: 0.86rem;
  font-weight: 720;
}

.molecule-step__icon {
  font-size: 1.45rem;
}

.chemistry-action__arrow {
  color: #b51f2e;
  font-size: 1.35rem;
  font-weight: 900;
}

.chemistry-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chemistry-links-grid article {
  padding: 22px;

  border: 1px solid #e5e5e5;
  border-radius: 14px;
}

.chemistry-level {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;

  background: #fff5d8;
  color: #8b6710;
  border-radius: 6px;

  font-size: 0.76rem;
  font-weight: 800;
}

.chemistry-links-grid h3 {
  margin: 0 0 8px;
}

.chemistry-links-grid p {
  margin: 0;
  color: #667085;
  line-height: 1.55;
}

.career-route {
  position: relative;
  display: grid;
  gap: 0;
}

.career-route-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;

  padding-bottom: 24px;
}

.career-route-step:last-child {
  padding-bottom: 0;
}

.career-route-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 0;

  width: 2px;
  background: #e3d18e;
}

.career-route-marker {
  position: relative;
  z-index: 1;

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  background: #b51f2e;
  color: #fff;
  border: 4px solid #fff;
  border-radius: 50%;

  box-shadow: 0 0 0 2px #d7aa24;

  font-weight: 850;
}

.career-route-step h3 {
  margin: 5px 0 5px;
}

.career-route-step p {
  max-width: 800px;
  margin: 0;

  color: #667085;
  line-height: 1.55;
}

.career-fit {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;

  margin-top: 28px;
  padding: 38px 40px;
}

.career-fit ul {
  margin: 20px 0 0;
  padding-left: 1.35rem;
}

.career-fit li {
  margin: 9px 0;
  color: #515b69;
  line-height: 1.5;
}

.career-fit__reality {
  align-self: stretch;

  padding: 24px;

  background: #f6f6f6;
  border-radius: 14px;
}

.career-fit__reality h3 {
  margin-top: 0;
}

.career-fit__reality p {
  margin-bottom: 0;
  color: #667085;
  line-height: 1.6;
}

.career-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.career-source-card {
  display: flex;
  flex-direction: column;
  gap: 7px;

  padding: 20px;

  background: #f6f8fb;

  color: inherit;
  text-decoration: none;

  border: 1px solid #dfe4ea;
  border-radius: 14px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.career-source-card:hover {
  transform: translateY(-3px);

  background: #fffaf0;
  border-color: #d7aa24;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.career-source-card span {
  color: #b51f2e;
  font-size: 0.8rem;
  font-weight: 800;
}

.career-source-card strong {
  color: #252a33;
}

.career-source-card small {
  color: #6a7280;
  line-height: 1.45;
}

.career-data-note {
  margin: 18px 0 0;
  color: #7a818d;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .career-profile {
    width: min(100% - 28px, 760px);
    padding-top: 28px;
  }

  .career-profile-hero,
  .chemistry-action,
  .career-fit {
    grid-template-columns: 1fr;
  }

  .career-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-source-grid {
    grid-template-columns: 1fr;
  }

  .chemistry-action__example {
    flex-wrap: wrap;
  }

  .chemistry-action__arrow {
    display: none;
  }

  .molecule-step {
    min-width: 46%;
  }
}

@media (max-width: 600px) {
  .career-profile {
    width: calc(100% - 20px);
  }

  .career-profile-hero__main,
  .career-glance,
  .career-profile-section,
  .chemistry-action,
  .career-fit {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .career-profile-title-row {
    display: block;
  }

  .career-profile-image {
  margin-top: 20px;
  max-width: none;
}

.career-profile-image img {
  height: 220px;
}

  .career-action-grid,
  .chemistry-links-grid {
    grid-template-columns: 1fr;
  }

  .molecule-step {
    min-width: 100%;
  }
}


/* =========================================================
   Chemistry in Action — medicinal chemistry case study
   ========================================================= */

.chemistry-action--case-study {
  display: block;
  padding: 38px 40px;
}

.case-study-heading {
  margin-bottom: 30px;
}

.case-study-heading h2 {
  margin: 5px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.case-study-heading > p:last-child {
  margin: 0;
  color: #5e6674;
  font-size: 1.02rem;
  line-height: 1.65;
}

.opioid-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.drug-comparison-card {
  display: flex;
  flex-direction: column;
  padding: 22px;

  background: #ffffff;
  border: 1px solid #ead8da;
  border-radius: 15px;
}

.drug-comparison-card__heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.drug-step {
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  background: #b51f2e;
  color: #ffffff;
  border-radius: 50%;

  font-size: 0.78rem;
  font-weight: 850;
}

.drug-comparison-card h3 {
  margin: 2px 0 3px;
  font-size: 1.25rem;
}

.drug-comparison-card h3 span {
  color: #687181;
  font-size: 0.82em;
  font-weight: 650;
}

.drug-comparison-card__heading p {
  margin: 0;
  color: #717987;
  font-size: 0.86rem;
  line-height: 1.35;
}

.drug-structure {
  display: block;
  width: 100%;
  height: 225px;
  margin: 12px 0 8px;

  object-fit: contain;

  background: #ffffff;
  border-radius: 10px;
}

.functional-group-badge {
  margin: 2px 0 16px;
  padding: 10px 12px;

  background: #fff8df;
  border: 1px solid #eadcae;
  border-radius: 10px;
}

.functional-group-badge span {
  display: block;
  margin-bottom: 3px;

  color: #806217;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.functional-group-badge strong {
  color: #2d3138;
  font-size: 0.96rem;
}

.drug-comparison-card__text {
  margin: 0;
  color: #5f6876;
  line-height: 1.58;
}

.property-trend {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;

  margin-top: 22px;
  padding: 14px 18px;

  background: #ffffff;
  border: 1px solid #ead8da;
  border-radius: 12px;

  font-weight: 750;
}

.property-trend > span {
  color: #343942;
}

.property-trend__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  color: #b51f2e;
  text-align: center;
}

.property-trend__line strong {
  color: #686f7b;
  font-size: 0.9rem;
}

.property-trend__arrow {
  color: #b51f2e;
  font-size: 1.25rem;
}

.medicinal-lesson {
  margin-top: 22px;
  padding: 20px 22px;

  background: #ffffff;
  border-left: 5px solid #d7aa24;
  border-radius: 10px;
}

.medicinal-lesson > strong {
  display: block;
  margin-bottom: 7px;

  color: #b51f2e;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.medicinal-lesson p {
  margin: 0;
  color: #555f6d;
  line-height: 1.62;
}

.case-study-caveat {
  margin: 16px 2px 0;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.55;
}

.thalidomide-case-study {
  margin-top: 24px;

  background: #fffaf0;
  border: 1px solid #eadcae;
  border-radius: 13px;

  overflow: hidden;
}

.thalidomide-case-study summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  padding: 18px 20px;

  cursor: pointer;
  list-style: none;
}

.thalidomide-case-study summary::-webkit-details-marker {
  display: none;
}

.thalidomide-case-study summary::after {
  content: "+";

  display: grid;
  place-items: center;
  flex: 0 0 auto;

  width: 30px;
  height: 30px;

  background: #b51f2e;
  color: #ffffff;
  border-radius: 50%;

  font-size: 1.2rem;
  font-weight: 800;
}

.thalidomide-case-study[open] summary::after {
  content: "−";
}

.thalidomide-case-study__title {
  color: #b51f2e;
  font-weight: 850;
}

.thalidomide-case-study__prompt {
  margin-left: auto;
  color: #6a7280;
  font-size: 0.88rem;
  font-weight: 650;
}

.thalidomide-case-study__content {
  padding: 4px 20px 22px;
  border-top: 1px solid #eadcae;
}

.thalidomide-case-study__content h3 {
  margin: 18px 0 10px;
}

.thalidomide-case-study__content p {
  color: #5f6876;
  line-height: 1.62;
}

.thalidomide-case-study__link {
  display: inline-block;
  margin-top: 4px;

  color: #b51f2e;
  font-weight: 750;
  text-decoration: none;
}

.thalidomide-case-study__link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .opioid-comparison {
    grid-template-columns: 1fr;
  }

  .drug-structure {
    height: 260px;
  }

  .property-trend {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .property-trend__line {
    flex-direction: column;
    gap: 4px;
  }

  .property-trend__arrow {
    transform: rotate(90deg);
  }

  .thalidomide-case-study summary {
    align-items: flex-start;
  }

  .thalidomide-case-study__prompt {
    display: none;
  }
}

@media (max-width: 600px) {
  .chemistry-action--case-study {
    padding: 24px 20px;
  }

  .drug-comparison-card {
    padding: 18px;
  }

  .drug-structure {
    height: 220px;
  }
}

.career-explore-section {
  background: #f4f7fa;
  border: 1px solid #dfe4ea;
  border-top: 5px solid #d7aa24;
}

.career-explore-section .career-source-card {
  background: #ffffff;
}

.career-section-heading {
  margin-bottom: 24px;
}

/* Environmental Chemist hero: long title + image */
.environmental-chemist-page .career-profile-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}

.environmental-chemist-page .career-profile-title-row > div:first-child {
  min-width: 0;
}

.environmental-chemist-page .career-profile-hero h2 {
  font-size: clamp(2.7rem, 4.2vw, 4rem);
}

.environmental-chemist-page .career-profile-image {
  width: 300px;
  max-width: 300px;
  min-width: 0;
}

.environmental-chemist-page .career-profile-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .environmental-chemist-page .career-profile-title-row {
    grid-template-columns: 1fr;
  }

  .environmental-chemist-page .career-profile-image {
    width: 100%;
    max-width: none;
  }
}