
/* MENDELEY.ID — MODERN BORDEAUX HOMEPAGE */

:root {
  --md-primary: #922B50;
  --md-primary-dark: #76213F;
  --md-dark: #171C26;
  --md-text: #49545E;
  --md-muted: #65717D;
  --md-bg: #FAF9F6;
  --md-white: #ffffff;
  --md-border: #E9E2E4;
  --md-container: 1440px;
  --md-font: "DM Sans", sans-serif;
  --md-heading: "Manrope", sans-serif;
}

/* GLOBAL */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.md-homepage {
  margin: 0;
  padding: 0;
  background: var(--md-white);
  color: var(--md-dark);
  font-family: var(--md-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.md-homepage button,
.md-homepage input {
  font-family: inherit;
}

.md-homepage a {
  color: inherit;
}

.md-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HERO SECTION */

.md-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 75% 15%,
      rgba(242,216,225,.38),
      transparent 54%
    ),
    linear-gradient(
      110deg,
      #FFFEFC 0%,
      #FCF8F6 43%,
      #F5ECEF 100%
    );

  border-bottom: 1px solid #EBE5E4;
}

/* SOFT BACKGROUND EFFECT */

.md-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -180px;
  bottom: -270px;
  width: 560px;
  height: 560px;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(244,220,226,.45),
    transparent 68%
  );

  pointer-events: none;
}

/* HERO CONTAINER */

.md-hero__container {
  position: relative;
  display: flex;
  align-items: center;

  width: min(
    calc(100% - 88px),
    var(--md-container)
  );

  min-height: 625px;
  margin-inline: auto;
  padding-top: 75px;
  padding-bottom: 90px;
}

/* HERO CONTENT */

.md-hero__content {
  position: relative;
  z-index: 2;
  width: 58%;
  max-width: 750px;
  padding-right: 20px;
}

/* HERO LABEL */

.md-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;

  padding: 8px 15px;
  border: 1px solid #EAD6DE;
  border-radius: 50px;

  background: rgba(255,255,255,.8);
  color: #922B50;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .15px;

  box-shadow: 0 3px 12px rgba(146,43,80,.035);
}

.md-hero__eyebrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--md-primary);
}

.md-hero__eyebrow-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* HERO HEADING */

.md-hero__title {
  max-width: 770px;
  margin: 24px 0 21px;
  color: #171C26;

  font-family: var(--md-heading);
  font-size: clamp(42px, 3.7vw, 61px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -2.5px;

  text-wrap: balance;
}

.md-hero__title-accent {
  display: block;
  color: #922B50;

  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: currentColor;
}

/* DESCRIPTION */

.md-hero__description {
  max-width: 590px;
  margin: 0;

  color: #65717D;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: -.1px;

  text-wrap: pretty;
}

/* SEARCH AREA */

.md-hero__search-area {
  width: 100%;
  max-width: 685px;
  margin-top: 33px;
}

.md-hero__search {
  width: 100%;
  margin: 0;
}

/* SEARCH CONTAINER */

.md-hero__search-field {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  min-height: 70px;
  padding: 8px 8px 8px 21px;

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

  box-shadow:
    0 15px 45px rgba(23,28,38,.075),
    0 2px 8px rgba(23,28,38,.025);

  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.md-hero__search-field:hover {
  border-color: #CFA4B3;
}

.md-hero__search-field:focus-within {
  border-color: #B85671;

  box-shadow:
    0 0 0 4px rgba(146,43,80,.08),
    0 16px 45px rgba(23,28,38,.085);
}

/* SEARCH ICON */

.md-hero__search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;
  flex: 0 0 auto;

  color: #7A828A;
}

.md-hero__search-icon svg {
  width: 22px;
  height: 22px;
}

/* SEARCH INPUT */

.md-hero__search-field input {
  display: block;
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 4px;

  border: none;
  outline: none;
  background: transparent;

  color: #171C26;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  box-shadow: none;
  appearance: none;
}

.md-hero__search-field input::placeholder {
  color: #879099;
  opacity: 1;
}

.md-hero__search-field input::-webkit-search-cancel-button {
  cursor: pointer;
}

/* SEARCH BUTTON */

.md-hero__search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
  flex-shrink: 0;

  min-height: 52px;
  padding: 0 21px;

  border: 0;
  border-radius: 10px;

  background: var(--md-primary);
  color: #ffffff;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;

  white-space: nowrap;
  cursor: pointer;

  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.md-hero__search-button svg {
  display: block;
  width: 17px;
  height: 17px;
}

.md-hero__search-button:hover {
  background: var(--md-primary-dark);
  transform: translateY(-1px);

  box-shadow:
    0 6px 18px rgba(146,43,80,.19);
}

.md-hero__search-button:active {
  transform: translateY(0);
}

.md-hero__search-button:focus-visible {
  outline: 3px solid #BE708A;
  outline-offset: 3px;
}

/* BENEFITS */

.md-hero__benefits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 23px;
  padding-left: 3px;
}

.md-hero__benefit {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #65717D;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;

  white-space: nowrap;
}

.md-hero__benefit svg {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #922B50;
}

.md-hero__benefit-divider {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;

  border-radius: 50%;
  background: #C5B9BD;
}

/* HERO BACKGROUND IMAGE */

.md-hero__visual {
  position: absolute;
  z-index: 0;

  top: 0;
  bottom: 0;
  left: 47%;
  right: -5%;

  pointer-events: none;
  background-color: #F3E9EB;

  background-image:
    linear-gradient(
      90deg,
      #FAF9F6 0%,
      rgba(250,249,246,.94) 10%,
      rgba(250,249,246,.55) 28%,
      rgba(250,249,246,.06) 67%
    ),
    url("/assets/images/hero-bg.webp");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center, center right;
}

.md-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    0deg,
    rgba(250,249,246,.52) 0%,
    transparent 22%,
    transparent 78%,
    rgba(250,249,246,.22) 100%
  );
}

/* LARGE DESKTOP */

@media (min-width: 1600px) {
  .md-hero__container {
    min-height: 675px;
  }

  .md-hero__title {
    font-size: 63px;
  }

  .md-hero__visual {
    right: calc(
      (var(--md-container) - 100vw) / 2
    );
  }
}

/* LAPTOP */

@media (max-width: 1365px) {
  .md-hero__container {
    width: calc(100% - 76px);
    min-height: 585px;
    padding-top: 67px;
    padding-bottom: 76px;
  }

  .md-hero__content {
    width: 60%;
  }

  .md-hero__title {
    font-size: clamp(40px, 4vw, 54px);
    letter-spacing: -2px;
  }

  .md-hero__description {
    max-width: 530px;
    font-size: 15px;
  }

  .md-hero__visual {
    left: 45%;
    right: -38px;
  }
}

/* SMALL LAPTOP */

@media (max-width: 1100px) {
  .md-hero__container {
    min-height: 540px;
  }

  .md-hero__content {
    width: 65%;
  }

  .md-hero__title {
    font-size: clamp(38px, 4.2vw, 48px);
  }

  .md-hero__description {
    max-width: 490px;
  }

  .md-hero__search-field {
    min-height: 65px;
  }

  .md-hero__search-button {
    min-height: 48px;
  }

  .md-hero__visual {
    left: 43%;
    opacity: .72;
  }
}

/* TABLET */

@media (max-width: 900px) {
  .md-hero__container {
    display: block;
    width: calc(100% - 64px);
    min-height: auto;
    padding-top: 75px;
    padding-bottom: 85px;
  }

  .md-hero__content {
    width: 100%;
    max-width: 720px;
    padding-right: 0;
  }

  .md-hero__title {
    max-width: 690px;
    font-size: clamp(40px, 5.5vw, 54px);
    line-height: 1.21;
  }

  .md-hero__description {
    max-width: 625px;
  }

  .md-hero__search-area {
    max-width: 660px;
  }

  .md-hero__visual {
    display: none;
  }

  .md-hero {
    background:
      radial-gradient(
        ellipse at 100% 0%,
        rgba(242,216,225,.4),
        transparent 65%
      ),
      linear-gradient(
        120deg,
        #FFFEFC,
        #F7EFF1
      );
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .md-hero__container {
    width: calc(100% - 40px);
    padding-top: 58px;
    padding-bottom: 67px;
  }

  .md-hero__eyebrow {
    gap: 7px;
    padding: 8px 12px;
    font-size: 10.5px;
  }

  .md-hero__eyebrow-icon svg {
    width: 14px;
    height: 14px;
  }

  .md-hero__title {
    margin-top: 22px;
    margin-bottom: 17px;
    font-size: clamp(32px, 8.1vw, 43px);
    line-height: 1.23;
    letter-spacing: -1.45px;
  }

  .md-hero__description {
    font-size: 14px;
    line-height: 1.85;
  }

  .md-hero__search-area {
    margin-top: 27px;
  }

  .md-hero__search-field {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 8px;
    padding: 11px;
    border-radius: 13px;
  }

  .md-hero__search-icon {
    width: 24px;
    height: 45px;
  }

  .md-hero__search-icon svg {
    width: 20px;
    height: 20px;
  }

  .md-hero__search-field input {
    height: 45px;
    width: 100%;
    padding: 0;
    font-size: 13px;
  }

  .md-hero__search-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
    border-radius: 9px;
    font-size: 13px;
  }

  .md-hero__benefits {
    gap: 9px 12px;
    margin-top: 20px;
  }

  .md-hero__benefit {
    font-size: 11px;
  }

  .md-hero__benefit-divider {
    display: none;
  }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
  .md-hero__container {
    width: calc(100% - 30px);
    padding-top: 48px;
    padding-bottom: 58px;
  }

  .md-hero__title {
    font-size: 30px;
    letter-spacing: -1.2px;
  }

  .md-hero__description {
    font-size: 13.5px;
  }

  .md-hero__eyebrow {
    font-size: 10px;
  }

  .md-hero__search-field input {
    font-size: 12px;
  }

  .md-hero__benefit {
    font-size: 10.5px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .md-hero *,
  .md-hero *::before,
  .md-hero *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}











/* ==================================================
   MENDELEY.ID — SECTION 2
   ACADEMIC RESEARCH TOOLS
   Modern Bordeaux | Fraunces + Outfit
================================================== */

/* SECTION BACKGROUND */

.md-tools {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 88px 0 98px;

    background:
        radial-gradient(
            ellipse at 5% 15%,
            rgba(245, 231, 236, .70),
            transparent 43%
        ),
        radial-gradient(
            ellipse at 95% 85%,
            rgba(245, 231, 236, .65),
            transparent 45%
        ),
        #FFFCFD;

    border-bottom: 1px solid #F0E4E8;
}

/* SUBTLE CURVED BACKGROUND */

.md-tools::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: -290px;
    left: 50%;

    width: 150%;
    height: 600px;

    transform: translateX(-50%);

    background: rgba(255, 255, 255, .52);
    border-radius: 50%;

    pointer-events: none;
}

/* CONTAINER */

.md-tools__container {
    position: relative;
    z-index: 1;

    width: min(
        calc(100% - 88px),
        1320px
    );

    margin: 0 auto;
}

/* SECTION INTRO */

.md-tools__intro {
    max-width: 1100px;
    margin: 0 auto 42px;
    text-align: center;
}

/* PREMIUM EYEBROW */

.md-tools__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;
    margin-bottom: 21px;
}

.md-tools__eyebrow-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 9px 22px;

    border: 1px solid #F0DDE4;
    border-radius: 100px;

    background: #F9EDF1;
    color: #922B50;

    font-family: "Outfit", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.7px;
    line-height: 1.3;
    text-transform: uppercase;
}

/* EYEBROW SIDE LINES */

.md-tools__eyebrow-line {
    position: relative;
    display: block;

    width: 53px;
    height: 1px;

    background: #CE8CA3;
}

.md-tools__eyebrow-line::after {
    content: "";

    position: absolute;
    top: 50%;
    right: -3px;

    width: 5px;
    height: 5px;

    transform: translateY(-50%);

    border-radius: 50%;
    background: #CE8CA3;
}

.md-tools__eyebrow-line:last-child::after {
    right: auto;
    left: -3px;
}

/* MAIN SECTION HEADING */

.md-tools__title {
    margin: 0 0 12px;

    color: #171C26;

    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(35px, 3.5vw, 52px);
    font-weight: 600;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: -.035em;

    text-wrap: balance;
}

/* SECTION DESCRIPTION */

.md-tools__description {
    max-width: 790px;
    margin: 0 auto;

    color: #65717D;

    font-family: "Outfit", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;

    text-wrap: pretty;
}

/* ===============================================
   SIX-TOOL GRID
=============================================== */

.md-tools__grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;

    align-items: stretch;
}

/* TOOL CARD */

.md-tool-card {
    min-width: 0;

    border: 1px solid #F0DCE3;
    border-radius: 19px;

    background: rgba(255, 255, 255, .94);

    box-shadow:
        0 8px 28px rgba(87, 38, 57, .035);

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}

.md-tool-card:hover,
.md-tool-card:focus-within {
    transform: translateY(-4px);

    border-color: #DBB5C2;

    box-shadow:
        0 16px 42px rgba(92, 35, 56, .085);
}

/* FULL CARD CLICKABLE */

.md-tool-card__link {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
    min-height: 220px;

    padding: 24px 22px 18px;

    color: inherit;
    text-decoration: none !important;
    border-radius: inherit;
}

.md-tool-card__link:focus-visible {
    outline: 3px solid #922B50;
    outline-offset: 4px;
}

/* ===============================================
   MAIN CARD LAYOUT
=============================================== */

.md-tool-card__main {
    display: grid;

    grid-template-columns:
        64px
        minmax(0, 1fr)
        44px;

    align-items: center;
    column-gap: 15px;

    min-width: 0;
}

/* MAIN ICON BACKGROUND */

.md-tool-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    border-radius: 16px;

    background: #F8EAF0;
    color: #9B2851;

    flex-shrink: 0;
}

/* FONT AWESOME MAIN ICON */

.md-tool-card__icon i {
    display: inline-block;

    font-size: 27px;
    line-height: 1;

    color: currentColor;
}

/* CARD TEXT */

.md-tool-card__content {
    min-width: 0;
}

.md-tool-card__title {
    margin: 0 0 6px;

    color: #171C26;

    font-family: "Fraunces", Georgia, serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.45px;

    overflow-wrap: break-word;
}

/* CARD DESCRIPTION */

.md-tool-card__description {
    margin: 0;

    color: #65717D;

    font-family: "Outfit", Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.55;
}

/* ===============================================
   BORDEAUX CIRCULAR ARROW
=============================================== */

.md-tool-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: #922B50;
    color: #FFFFFF;

    box-shadow:
        0 5px 12px rgba(146, 43, 80, .14);

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

/* WHITE FONT AWESOME ARROW */

.md-tool-card__arrow i {
    font-size: 17px;
    color: #FFFFFF;
    line-height: 1;

    transition: transform .25s ease;
}

.md-tool-card:hover .md-tool-card__arrow,
.md-tool-card:focus-within .md-tool-card__arrow {
    background: #76213F;

    box-shadow:
        0 7px 17px rgba(146, 43, 80, .22);
}

.md-tool-card:hover .md-tool-card__arrow i,
.md-tool-card:focus-within .md-tool-card__arrow i {
    transform: translateX(3px);
}

/* ===============================================
   CARD FOOTER FEATURES
=============================================== */

.md-tool-card__features {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: start;

    gap: 7px;

    width: 100%;

    margin-top: auto;
    padding-top: 17px;

    border-top: 1px solid #F2E6E9;
}

/* SPACE BETWEEN TOP AND FOOTER */

.md-tool-card__main {
    margin-bottom: 21px;
}

/* INDIVIDUAL FEATURE */

.md-tool-card__feature {
    display: flex;
    align-items: flex-start;

    gap: 7px;

    min-width: 0;

    color: #65717D;

    font-family: "Outfit", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

/* MINI FEATURE ICONS */

.md-tool-card__feature > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 14px;
    min-width: 14px;

    margin-top: 2px;

    color: #A12D56;
    font-size: 12px;
    line-height: 1.2;
}

.md-tool-card__feature > span {
    min-width: 0;
    overflow-wrap: break-word;
}

/* ===============================================
   LARGE DESKTOP
=============================================== */

@media (min-width: 1600px) {

    .md-tools {
        padding-top: 100px;
        padding-bottom: 110px;
    }

    .md-tools__container {
        width: min(
            calc(100% - 100px),
            1320px
        );
    }

    .md-tools__title {
        font-size: 54px;
    }

}

/* ===============================================
   SMALLER DESKTOP
=============================================== */

@media (max-width: 1200px) {

    .md-tools__container {
        width: calc(100% - 64px);
    }

    .md-tools__grid {
        gap: 16px;
    }

    .md-tool-card__link {
        padding: 21px 18px 17px;
    }

    .md-tool-card__main {
        grid-template-columns:
            56px
            minmax(0, 1fr)
            40px;

        column-gap: 12px;
    }

    .md-tool-card__icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .md-tool-card__icon i {
        font-size: 23px;
    }

    .md-tool-card__arrow {
        width: 40px;
        height: 40px;
    }

    .md-tool-card__title {
        font-size: 21px;
    }

    .md-tool-card__description {
        font-size: 13px;
    }

}

/* ===============================================
   TABLET — TWO COLUMNS
=============================================== */

@media (max-width: 1100px) {

    .md-tools {
        padding-top: 78px;
        padding-bottom: 86px;
    }

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

    .md-tools__intro {
        margin-bottom: 35px;
    }

    .md-tool-card__link {
        min-height: 216px;
    }

}

/* ===============================================
   MOBILE — SINGLE COLUMN
=============================================== */

@media (max-width: 700px) {

    .md-tools {
        padding-top: 65px;
        padding-bottom: 75px;
    }

    .md-tools::before {
        top: -110px;
        width: 180%;
        height: 310px;
    }

    .md-tools__container {
        width: calc(100% - 36px);
    }

    .md-tools__intro {
        margin-bottom: 30px;
    }

    .md-tools__eyebrow {
        gap: 9px;
        margin-bottom: 19px;
    }

    .md-tools__eyebrow-label {
        min-height: 35px;
        padding: 8px 15px;
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .md-tools__eyebrow-line {
        width: 22px;
    }

    .md-tools__title {
        font-size: clamp(31px, 7vw, 40px);
        line-height: 1.18;
        letter-spacing: -.025em;
    }

    .md-tools__description {
        max-width: 500px;
        font-size: 13.5px;
        line-height: 1.7;
    }

    .md-tools__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .md-tool-card {
        border-radius: 16px;
    }

    .md-tool-card__link {
        min-height: 0;
        padding: 20px 18px 16px;
    }

    .md-tool-card__main {
        grid-template-columns:
            54px
            minmax(0, 1fr)
            40px;

        column-gap: 12px;
        margin-bottom: 18px;
    }

    .md-tool-card__icon {
        width: 54px;
        height: 54px;
        border-radius: 13px;
    }

    .md-tool-card__icon i {
        font-size: 22px;
    }

    .md-tool-card__title {
        font-size: 21px;
        margin-bottom: 4px;
    }

    .md-tool-card__description {
        font-size: 12.5px;
        line-height: 1.5;
    }

    .md-tool-card__arrow {
        width: 40px;
        height: 40px;
    }

    .md-tool-card__arrow i {
        font-size: 15px;
    }

    .md-tool-card__features {
        padding-top: 14px;
        gap: 5px;
    }

    .md-tool-card__feature {
        gap: 5px;
        font-size: 10.5px;
    }

    .md-tool-card__feature > i {
        width: 12px;
        min-width: 12px;
        font-size: 11px;
    }

}

/* ===============================================
   VERY SMALL MOBILE
=============================================== */

@media (max-width: 380px) {

    .md-tools__container {
        width: calc(100% - 28px);
    }

    .md-tools__title {
        font-size: 30px;
    }

    .md-tools__eyebrow-line {
        width: 13px;
    }

    .md-tool-card__link {
        padding: 17px 14px 14px;
    }

    .md-tool-card__main {
        grid-template-columns:
            48px
            minmax(0, 1fr)
            36px;

        column-gap: 9px;
    }

    .md-tool-card__icon {
        width: 48px;
        height: 48px;
    }

    .md-tool-card__icon i {
        font-size: 20px;
    }

    .md-tool-card__arrow {
        width: 36px;
        height: 36px;
    }

    .md-tool-card__title {
        font-size: 19px;
    }

    .md-tool-card__feature {
        font-size: 10px;
    }

}

/* ===============================================
   REDUCED MOTION
=============================================== */

@media (prefers-reduced-motion: reduce) {

    .md-tool-card,
    .md-tool-card__arrow,
    .md-tool-card__arrow i {
        transition: none !important;
        animation: none !important;
    }

}

/* ==================================================
   MENDELEY.ID — SECTION 2 REFINEMENT
   Desktop Layout + Animated Fog Transitions
   Modern Bordeaux
================================================== */

/* REMOVE THE SHARP HERO DIVIDER */

.md-hero {
    border-bottom: 0;
}

/* ================================================
   SECTION 2 — DESKTOP SPACING
================================================ */

.md-tools {
    position: relative;
    z-index: 2;
    isolation: isolate;

    /* Allow the fog to overlap neighboring sections */
    overflow: visible;

    /* Connect the section with the hero */
    margin-top: -42px;

    /* More balanced desktop spacing */
    padding: 78px 0 88px;

    border-top: 0;
    border-bottom: 0;

    background: linear-gradient(
        180deg,
        rgba(250,249,246,0.04) 0%,
        rgba(250,249,246,0.70) 46px,
        #FFFBFC 135px,
        #FFFCFD 70%,
        #FAF9F6 100%
    );
}

/* ================================================
   TOP FOG — HERO TO SECTION 2
================================================ */

.md-tools::before {
    content: "";

    position: absolute;
    z-index: 0;

    top: -34px;
    left: 0;
    right: 0;

    width: 100%;
    height: 195px;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse 44% 64% at 18% 50%,
            rgba(255,255,255,.96) 0%,
            rgba(255,255,255,.58) 48%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 49% 70% at 77% 44%,
            rgba(255,255,255,.88) 0%,
            rgba(250,249,246,.42) 52%,
            transparent 100%
        ),
        linear-gradient(
            180deg,
            rgba(250,249,246,.10) 0%,
            rgba(255,251,252,.65) 58%,
            transparent 100%
        );

    filter: blur(18px);
    opacity: .80;

    animation:
        md-fog-top 14s ease-in-out infinite alternate;
}

/* ================================================
   BOTTOM FOG — SECTION 2 TO SECTION 3
================================================ */

.md-tools::after {
    content: "";

    position: absolute;
    z-index: 0;

    bottom: -35px;
    left: 0;
    right: 0;

    width: 100%;
    height: 170px;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse 55% 65% at 25% 65%,
            rgba(255,255,255,.88) 0%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 52% 70% at 80% 50%,
            rgba(255,255,255,.88) 0%,
            transparent 100%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(250,249,246,.68) 65%,
            #FAF9F6 100%
        );

    filter: blur(20px);
    opacity: .82;

    animation:
        md-fog-bottom 17s ease-in-out infinite alternate;
}

/* ================================================
   SOFT FOG ANIMATIONS
================================================ */

@keyframes md-fog-top {
    0% {
        transform: translateY(0);
        opacity: .70;
    }

    50% {
        opacity: .90;
    }

    100% {
        transform: translateY(9px);
        opacity: .84;
    }
}

@keyframes md-fog-bottom {
    0% {
        transform: translateY(5px);
        opacity: .78;
    }

    50% {
        opacity: .92;
    }

    100% {
        transform: translateY(-7px);
        opacity: .84;
    }
}

/* ================================================
   PROTECT SECTION CONTENT
================================================ */

.md-tools__container {
    position: relative;
    z-index: 1;

    width: min(
        calc(100% - 88px),
        1360px
    );

    margin-inline: auto;
}

/* ================================================
   REFINED SECTION INTRO SPACING
================================================ */

.md-tools__intro {
    max-width: 1100px;

    margin: 0 auto 34px;

    text-align: center;
}

.md-tools__eyebrow {
    margin-bottom: 17px;
}

.md-tools__title {
    margin-bottom: 12px;
}

.md-tools__description {
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   DESKTOP RESEARCH CARD GRID
================================================ */

.md-tools__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    align-items: stretch;
}

.md-tool-card {
    min-width: 0;
}

.md-tool-card__link {
    min-height: 210px;
}

/* ================================================
   LAPTOP
================================================ */

@media (max-width: 1350px) {

    .md-tools {
        margin-top: -36px;
        padding-top: 69px;
        padding-bottom: 78px;
    }

    .md-tools__container {
        width: calc(100% - 76px);
    }

    .md-tools__grid {
        gap: 17px;
    }

    .md-tools__intro {
        margin-bottom: 30px;
    }
}

/* ================================================
   TABLET
================================================ */

@media (max-width: 1100px) {

    .md-tools {
        margin-top: -24px;
        padding-top: 62px;
        padding-bottom: 75px;
    }

    .md-tools__container {
        width: calc(100% - 56px);
    }

    .md-tools__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 17px;
    }

    .md-tools__intro {
        margin-bottom: 30px;
    }

    .md-tools::before {
        height: 150px;
    }

    .md-tools::after {
        height: 130px;
    }
}

/* ================================================
   MOBILE
================================================ */

@media (max-width: 700px) {

    .md-tools {
        margin-top: -18px;
        padding-top: 57px;
        padding-bottom: 67px;
    }

    .md-tools__container {
        width: calc(100% - 36px);
    }

    .md-tools__intro {
        margin-bottom: 27px;
    }

    .md-tools__eyebrow {
        margin-bottom: 17px;
    }

    .md-tools__grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 14px;
    }

    .md-tool-card__link {
        min-height: 0;
    }

    /* Keep the fog subtle on small screens */

    .md-tools::before {
        top: -15px;
        height: 110px;
        filter: blur(14px);
        opacity: .60;
    }

    .md-tools::after {
        bottom: -20px;
        height: 105px;
        filter: blur(14px);
        opacity: .65;
    }
}

/* ================================================
   EXTRA SMALL MOBILE
================================================ */

@media (max-width: 380px) {

    .md-tools__container {
        width: calc(100% - 28px);
    }

    .md-tools {
        padding-top: 52px;
        padding-bottom: 62px;
    }
}

/* ================================================
   ACCESSIBILITY / REDUCED MOTION
================================================ */

@media (prefers-reduced-motion: reduce) {

    .md-tools::before,
    .md-tools::after {
        animation: none !important;
        transform: none !important;
    }
}

/* ==============================================
   MENDELEY.ID — SECTION 2 DESKTOP REFINEMENT
   Compact Premium Research Tools
============================================== */

/* SECTION PROPORTIONS */

.md-tools {
    margin-top: -18px;
    padding: 46px 0 58px;
    overflow: visible;
    background: linear-gradient(
        180deg,
        #FAF9F6 0%,
        #FFFCFD 38%,
        #FFFCFD 78%,
        #FAF9F6 100%
    );
}

/* TOP FOG TRANSITION */

.md-tools::before {
    content: "";
    position: absolute;
    z-index: 0;

    top: -48px;
    left: 0;
    right: 0;

    width: 100%;
    height: 125px;

    border-radius: 0;
    transform: none;

    background:
        radial-gradient(
            ellipse at 25% 45%,
            rgba(255,255,255,.85),
            transparent 70%
        ),
        radial-gradient(
            ellipse at 75% 35%,
            rgba(250,249,246,.88),
            transparent 75%
        );

    filter: blur(15px);
    pointer-events: none;

    animation: md-section-fog 15s
        ease-in-out infinite alternate;
}

/* BOTTOM FOG TRANSITION */

.md-tools::after {
    content: "";
    position: absolute;
    z-index: 0;

    left: 0;
    right: 0;
    bottom: -45px;

    width: 100%;
    height: 115px;

    border-radius: 0;
    transform: none;

    background: linear-gradient(
        180deg,
        transparent,
        rgba(250,249,246,.86)
    );

    filter: blur(16px);
    pointer-events: none;

    animation: md-section-fog 17s
        ease-in-out infinite alternate-reverse;
}

@keyframes md-section-fog {
    from {
        opacity: .68;
        transform: translateY(0);
    }
    to {
        opacity: .9;
        transform: translateY(6px);
    }
}

/* INNER WIDTH */

.md-tools__container {
    position: relative;
    z-index: 1;

    width: min(
        calc(100% - 72px),
        1320px
    );
    margin-inline: auto;
}

/* COMPACT SECTION INTRO */

.md-tools__intro {
    max-width: 1060px;
    margin: 0 auto 27px;
    text-align: center;
}

.md-tools__eyebrow {
    margin-bottom: 13px;
    gap: 12px;
}

.md-tools__eyebrow-label {
    min-height: 32px;
    padding: 7px 18px;
    font-size: 10px;
    letter-spacing: 1.3px;
}

.md-tools__title {
    margin: 0 0 7px;

    font-size: clamp(34px, 3.1vw, 44px);
    line-height: 1.17;
    letter-spacing: -.03em;
}

.md-tools__description {
    max-width: 850px;
    margin: 0 auto;

    font-size: 13.5px;
    line-height: 1.55;
}

/* THREE-COLUMN DESKTOP GRID */

.md-tools__grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px 18px;
    align-items: stretch;
}

/* REFINED CARDS */

.md-tool-card {
    min-width: 0;
    border-radius: 16px;
}

.md-tool-card__link {
    min-height: 166px;
    height: 100%;

    padding: 17px 17px 13px;

    display: flex;
    flex-direction: column;
}

/* TOP CARD CONTENT */

.md-tool-card__main {
    display: grid;
    grid-template-columns:
        52px
        minmax(0, 1fr)
        38px;

    align-items: center;
    column-gap: 12px;

    margin-bottom: 11px;
    min-width: 0;
}

/* ICON */

.md-tool-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
}

.md-tool-card__icon i {
    font-size: 22px;
}

/* CARD HEADING */

.md-tool-card__title {
    margin: 0 0 4px;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.3px;
}

/* CARD DESCRIPTION */

.md-tool-card__description {
    margin: 0;

    font-size: 12.5px;
    line-height: 1.4;
}

/* SOLID BORDEAUX ARROW */

.md-tool-card__arrow {
    width: 38px;
    height: 38px;

    border-radius: 50%;
    background: #922B50;
    color: #FFFFFF;
}

.md-tool-card__arrow i {
    font-size: 15px;
    color: #FFFFFF;
}

/* COMPACT CARD FOOTER */

.md-tool-card__features {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: start;
    gap: 6px;

    margin-top: auto;
    padding-top: 10px;

    border-top: 1px solid #F2E6E9;
}

.md-tool-card__feature {
    gap: 5px;

    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.35;
}

.md-tool-card__feature > i {
    width: 12px;
    min-width: 12px;

    font-size: 11px;
}

/* SMALL LAPTOP */

@media (max-width: 1180px) {

    .md-tools__container {
        width: calc(100% - 56px);
    }

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

    .md-tool-card__link {
        min-height: 163px;
    }
}

/* TABLET */

@media (max-width: 900px) {

    .md-tools {
        margin-top: -12px;
        padding: 54px 0 65px;
    }

    .md-tools__title {
        font-size: clamp(32px, 4.4vw, 40px);
    }

    .md-tools__intro {
        margin-bottom: 26px;
    }
}

/* MOBILE */

@media (max-width: 700px) {

    .md-tools {
        margin-top: -10px;
        padding: 48px 0 58px;
    }

    .md-tools__container {
        width: calc(100% - 36px);
    }

    .md-tools__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .md-tools__intro {
        margin-bottom: 25px;
    }

    .md-tools__title {
        font-size: clamp(30px, 7vw, 38px);
    }

    .md-tools__description {
        font-size: 13px;
        line-height: 1.65;
    }

    .md-tool-card__link {
        min-height: 0;
        padding: 18px 16px 14px;
    }

    .md-tool-card__main {
        margin-bottom: 15px;
    }

    .md-tool-card__features {
        padding-top: 12px;
    }
}

/* EXTRA SMALL MOBILE */

@media (max-width: 380px) {

    .md-tools__container {
        width: calc(100% - 28px);
    }

    .md-tool-card__link {
        padding: 16px 13px 13px;
    }

    .md-tool-card__main {
        grid-template-columns:
            45px
            minmax(0, 1fr)
            35px;

        column-gap: 9px;
    }

    .md-tool-card__icon {
        width: 45px;
        height: 45px;
    }

    .md-tool-card__title {
        font-size: 19px;
    }

    .md-tool-card__arrow {
        width: 35px;
        height: 35px;
    }

    .md-tool-card__feature {
        font-size: 10px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .md-tools::before,
    .md-tools::after {
        animation: none !important;
    }
}

/* ===============================================
   MENDELEY.ID — NATURAL FOG TRANSITION
   Hero → Research Tools → Next Section
   Modern Bordeaux
=============================================== */

/* 1. FADE THE HERO IMAGE NATURALLY */

.md-hero {
    position: relative;
    border-bottom: 0 !important;
}

.md-hero::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 145px;
    z-index: 1;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(250,249,246,0) 0%,
        rgba(250,249,246,.18) 24%,
        rgba(250,249,246,.55) 54%,
        rgba(250,249,246,.88) 82%,
        #FAF9F6 100%
    );
}

/* Keep hero content readable */

.md-hero__content {
    position: relative;
    z-index: 2;
}

/* 2. MATCH SECTION 2 BACKGROUND */

.md-tools {
    position: relative;
    z-index: 2;
    isolation: isolate;

    margin-top: -1px !important;
    overflow: visible;

    border-top: 0 !important;
    border-bottom: 0 !important;

    background: linear-gradient(
        180deg,
        #FAF9F6 0%,
        #FFFCFD 38%,
        #FFFCFD 76%,
        #FAF9F6 100%
    ) !important;
}

/* 3. SHARED FOG LAYERS */

.md-tools::before,
.md-tools::after {
    content: "";
    display: block;

    position: absolute;
    left: -5%;
    width: 110%;

    z-index: 0;
    pointer-events: none;

    border-radius: 0;

    background-repeat: no-repeat;

    will-change: transform, opacity;
}

/* 4. TOP ANIMATED FOG */

.md-tools::before {
    top: -80px;
    height: 190px;

    background:
        radial-gradient(
            ellipse 35% 70% at 20% 50%,
            rgba(255,255,255,.96) 0%,
            rgba(255,255,255,.60) 45%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 40% 65% at 65% 60%,
            rgba(245,231,236,.82) 0%,
            rgba(250,249,246,.45) 50%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 35% 68% at 93% 42%,
            rgba(255,255,255,.95) 0%,
            transparent 100%
        );

    filter: blur(18px);
    opacity: .82;

    animation:
        md-natural-fog-top
        13s ease-in-out infinite alternate;
}

/* 5. BOTTOM ANIMATED FOG */

.md-tools::after {
    bottom: -65px;
    height: 165px;

    background:
        radial-gradient(
            ellipse 42% 65% at 22% 50%,
            rgba(245,231,236,.85) 0%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 48% 74% at 76% 55%,
            rgba(255,255,255,.96) 0%,
            transparent 100%
        ),
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(250,249,246,.78) 75%,
            #FAF9F6 100%
        );

    filter: blur(20px);
    opacity: .78;

    animation:
        md-natural-fog-bottom
        16s ease-in-out infinite alternate;
}

/* 6. ANIMATE THE FOG HORIZONTALLY */

@keyframes md-natural-fog-top {

    0% {
        transform: translate3d(-18px, 0, 0);
        opacity: .68;
    }

    50% {
        opacity: .90;
    }

    100% {
        transform: translate3d(22px, 7px, 0);
        opacity: .82;
    }
}

@keyframes md-natural-fog-bottom {

    0% {
        transform: translate3d(20px, 3px, 0);
        opacity: .70;
    }

    50% {
        opacity: .88;
    }

    100% {
        transform: translate3d(-22px, -5px, 0);
        opacity: .80;
    }
}

/* 7. KEEP CARDS AND TEXT ABOVE THE FOG */

.md-tools__container {
    position: relative;
    z-index: 1;
}

/* 8. TABLET */

@media (max-width: 900px) {

    .md-hero::after {
        height: 110px;
    }

    .md-tools::before {
        top: -55px;
        height: 140px;
        filter: blur(14px);
    }

    .md-tools::after {
        bottom: -40px;
        height: 125px;
        filter: blur(15px);
    }
}

/* 9. MOBILE */

@media (max-width: 600px) {

    .md-hero::after {
        height: 80px;
    }

    .md-tools::before {
        top: -35px;
        height: 95px;
        opacity: .65;
        filter: blur(12px);
    }

    .md-tools::after {
        bottom: -30px;
        height: 90px;
        opacity: .65;
        filter: blur(12px);
    }
}

/* 10. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .md-tools::before,
    .md-tools::after {
        animation: none !important;
        will-change: auto;
    }
}










/* =====================================================
   MENDELEY.ID — SECTION 3
   JELAJAHI PENELITIAN
   Premium Desktop + Responsive Mobile
   Modern Bordeaux
===================================================== */

.md-discovery {
    --disc-bordeaux: #922B50;
    --disc-bordeaux-dark: #76213F;
    --disc-graphite: #171C26;
    --disc-muted: #65717D;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    padding: 80px 0 90px;

    background:
        radial-gradient(
            ellipse at 5% 60%,
            rgba(235, 201, 205, .48),
            transparent 47%
        ),
        radial-gradient(
            ellipse at 95% 20%,
            rgba(245, 224, 232, .62),
            transparent 52%
        ),
        linear-gradient(
            112deg,
            #F6EBE8 0%,
            #FFFCFA 47%,
            #F9EEF2 100%
        );
}

/* TRANSITION FROM SECTION 2 */

.md-discovery::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;

    height: 100px;

    background: linear-gradient(
        to bottom,
        #FAF9F6 0%,
        rgba(250,249,246,.65) 45%,
        transparent 100%
    );

    pointer-events: none;
}

/* TRANSITION INTO SECTION 4 */

.md-discovery::after {
    content: "";
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    right: 0;

    height: 100px;

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(250,249,246,.8)
    );

    pointer-events: none;
}

/* MAIN ACADEMIC BACKGROUND IMAGE */

.md-discovery__art {
    position: absolute;
    z-index: 0;

    left: 0;
    bottom: 0;

    width: 46%;
    height: 100%;

    background-image:
        linear-gradient(
            90deg,
            rgba(250,245,242,.05),
            rgba(255,252,250,.24)
        ),
        url("/assets/images/bidang/discovery-bg.webp");

    background-size: cover;
    background-position: left bottom;
    background-repeat: no-repeat;

    opacity: .58;

    -webkit-mask-image: linear-gradient(
        to right,
        black 0%,
        black 28%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        black 0%,
        black 28%,
        transparent 100%
    );

    pointer-events: none;
}

/* CONTAINER */

.md-discovery__container {
    position: relative;
    z-index: 1;

    width: min(
        calc(100% - 72px),
        1500px
    );

    margin: 0 auto;
}

/* DESKTOP TWO-PART LAYOUT */

.md-discovery__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.9fr);

    align-items: center;
    gap: 32px;
}

/* =========================================
   LEFT CONTENT
========================================= */

.md-discovery__intro {
    position: relative;
    z-index: 1;

    min-width: 0;
    max-width: 460px;

    padding: 20px 0 24px;
}

/* EYEBROW */

.md-discovery__eyebrow {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 37px;
    padding: 9px 17px;

    border: 1px solid #EDD7DF;
    border-radius: 50px;

    background: rgba(250,233,240,.88);
    color: #922B50;

    font-family: "Outfit", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.md-discovery__eyebrow i {
    font-size: 15px;
}

/* DECORATIVE EYEBROW LINE */

.md-discovery__eyebrow::after {
    content: "";
    position: absolute;

    top: 50%;
    right: -47px;

    width: 36px;
    height: 1px;

    background: #D89EB2;
}

/* MAIN TITLE */

.md-discovery__title {
    margin: 24px 0 16px;

    color: #171C26;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(43px, 3.5vw, 57px);
    font-weight: 600;
    font-style: normal;

    line-height: 1.05;
    letter-spacing: -.025em;

    text-wrap: balance;
}

/* BORDEAUX ITALIC PHRASE */

.md-discovery__title em {
    display: block;

    margin-top: 4px;

    color: #922B50;

    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    font-style: italic;

    line-height: 1.08;
    letter-spacing: -.015em;
}

/* DESCRIPTION */

.md-discovery__description {
    max-width: 410px;
    margin: 0 0 25px;

    color: #65717D;

    font-family: "Outfit", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

/* MAIN CTA */

.md-discovery__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    min-height: 49px;
    padding: 12px 20px;

    border: 1px solid #922B50;
    border-radius: 10px;

    background: #922B50;
    color: #FFFFFF !important;

    text-decoration: none !important;

    font-family: "Outfit", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.md-discovery__cta i {
    color: #FFFFFF;
    font-size: 16px;
}

.md-discovery__cta:hover {
    background: #76213F;
    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(146,43,80,.15);
}

.md-discovery__cta:focus-visible {
    outline: 3px solid #BE8297;
    outline-offset: 3px;
}

/* BENEFITS BELOW CTA */

.md-discovery__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;

    max-width: 430px;
    margin-top: 32px;
}

.md-discovery__benefit {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    min-width: 0;

    padding-right: 9px;

    color: #171C26;
}

.md-discovery__benefit:not(:last-child) {
    border-right: 1px solid #E7D7DD;
}

.md-discovery__benefit > i {
    margin-top: 3px;

    color: #922B50;
    font-size: 18px;
    flex-shrink: 0;
}

.md-discovery__benefit > span {
    display: flex;
    flex-direction: column;

    min-width: 0;

    font-family: "Outfit", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.md-discovery__benefit small {
    margin-top: 2px;

    color: #65717D;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 400;
}

/* =========================================
   RIGHT CATEGORY GRID
========================================= */

.md-discovery__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    min-width: 0;
    align-items: stretch;
}

/* CATEGORY CARD */

.md-field-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-width: 0;
    min-height: 235px;

    border: 1px solid #EDD8DF;
    border-radius: 15px;

    background: #FFFFFF;

    box-shadow:
        0 8px 22px rgba(76,32,48,.045);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.md-field-card:hover,
.md-field-card:focus-within {
    transform: translateY(-4px);

    border-color: #DDAFC0;

    box-shadow:
        0 15px 36px rgba(76,32,48,.10);
}

/* WHOLE CARD IS CLICKABLE */

.md-field-card__link {
    position: relative;
    isolation: isolate;

    display: block;

    width: 100%;
    min-height: 235px;
    height: 100%;

    overflow: hidden;

    padding: 19px 17px 17px;

    color: inherit;
    text-decoration: none !important;
    border-radius: inherit;
}

.md-field-card__link:focus-visible {
    outline: 3px solid #922B50;
    outline-offset: -3px;
}

/* CATEGORY BACKGROUND IMAGE */

.md-field-card__image {
    position: absolute;
    z-index: -2;

    top: 0;
    right: 0;

    width: 65%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: .88;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,.7) 35%,
        black 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,.7) 35%,
        black 100%
    );

    transition: transform .4s ease;
}

.md-field-card:hover .md-field-card__image {
    transform: scale(1.045);
}

/* READABILITY GRADIENT */

.md-field-card__overlay {
    position: absolute;
    z-index: -1;

    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,.99) 0%,
        rgba(255,255,255,.97) 37%,
        rgba(255,255,255,.78) 60%,
        rgba(255,255,255,.12) 100%
    );

    pointer-events: none;
}

/* CARD FOREGROUND */

.md-field-card__body {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 199px;
}

/* PROFESSIONAL FONT AWESOME ICON */

.md-field-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 47px;
    height: 47px;

    margin-bottom: 10px;

    border-radius: 12px;

    background: #F8E7ED;
    color: #922B50;
}

.md-field-card__icon i {
    color: currentColor;
    font-size: 21px;
}

/* CARD HEADING */

.md-field-card__title {
    margin: 0 0 6px;

    color: #171C26;

    font-family:
        "DM Serif Display",
        Georgia,
        serif;

    font-size: 21px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.25px;

    overflow-wrap: break-word;
}

/* CARD DESCRIPTION */

.md-field-card__description {
    max-width: 90%;
    margin: 0 0 14px;

    color: #65717D;

    font-family: "Outfit", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

/* =========================================
   VISIT BUTTON — NO ARROWS
========================================= */

.md-field-card__visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 32px;
    margin-top: auto;
    padding: 7px 13px;

    border-radius: 9px;

    background: #922B50;
    color: #FFFFFF;

    font-family: "Outfit", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;

    box-shadow:
        0 4px 10px rgba(146,43,80,.12);

    transition:
        background .2s ease,
        transform .2s ease;
}

.md-field-card__visit i {
    color: #FFFFFF;
    font-size: 13px;
}

.md-field-card:hover .md-field-card__visit,
.md-field-card:focus-within .md-field-card__visit {
    background: #76213F;
    transform: translateY(-1px);
}

/* =========================================
   DESKTOP / LAPTOP ADJUSTMENTS
========================================= */

@media (max-width: 1360px) {

    .md-discovery {
        padding: 68px 0 78px;
    }

    .md-discovery__layout {
        gap: 25px;
    }

    .md-discovery__title {
        font-size: clamp(41px, 3.5vw, 51px);
    }

    .md-discovery__description {
        font-size: 14px;
    }

    .md-discovery__grid {
        gap: 12px;
    }

    .md-field-card,
    .md-field-card__link {
        min-height: 224px;
    }

    .md-field-card__link {
        padding: 16px 14px 14px;
    }

    .md-field-card__body {
        min-height: 192px;
    }

    .md-field-card__title {
        font-size: 20px;
    }

    .md-field-card__description {
        font-size: 11.5px;
    }
}

/* =========================================
   COMPACT LAPTOP
   Intro moves above cards for readability
========================================= */

@media (max-width: 1120px) {

    .md-discovery__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .md-discovery__intro {
        max-width: 750px;
        padding: 10px 0 0;
        margin-inline: auto;

        text-align: center;
    }

    .md-discovery__title {
        font-size: clamp(42px, 5vw, 55px);
    }

    .md-discovery__description {
        max-width: 650px;
        margin-inline: auto;
    }

    .md-discovery__eyebrow::after {
        display: none;
    }

    .md-discovery__benefits {
        margin-inline: auto;
        justify-content: center;
    }

    .md-discovery__art {
        width: 60%;
        opacity: .32;
    }
}

/* =========================================
   TABLET — TWO CATEGORY COLUMNS
========================================= */

@media (max-width: 880px) {

    .md-discovery {
        padding: 62px 0 75px;
    }

    .md-discovery__container {
        width: calc(100% - 52px);
    }

    .md-discovery__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 15px;
    }

    .md-field-card,
    .md-field-card__link {
        min-height: 215px;
    }

    .md-field-card__body {
        min-height: 181px;
    }
}

/* =========================================
   MOBILE — SINGLE COLUMN
========================================= */

@media (max-width: 640px) {

    .md-discovery {
        padding: 56px 0 66px;
    }

    .md-discovery__container {
        width: calc(100% - 34px);
    }

    .md-discovery__layout {
        gap: 26px;
    }

    .md-discovery__intro {
        max-width: 100%;
        padding: 0;
    }

    .md-discovery__art {
        width: 100%;
        height: 390px;
        opacity: .12;
    }

    .md-discovery__eyebrow {
        min-height: 33px;
        padding: 7px 13px;
        gap: 8px;
        font-size: 10px;
        letter-spacing: .8px;
    }

    .md-discovery__title {
        margin-top: 18px;
        margin-bottom: 12px;

        font-size: clamp(38px, 9vw, 49px);
        line-height: 1.05;
    }

    .md-discovery__description {
        max-width: 500px;
        margin-bottom: 20px;

        font-size: 13px;
        line-height: 1.65;
    }

    .md-discovery__cta {
        min-height: 45px;
        padding: 10px 17px;
        font-size: 12px;
    }

    .md-discovery__benefits {
        max-width: 420px;
        margin-top: 24px;
        gap: 6px;
    }

    .md-discovery__benefit {
        justify-content: center;
        gap: 6px;
        padding-right: 5px;
    }

    .md-discovery__benefit > i {
        font-size: 15px;
    }

    .md-discovery__benefit > span {
        font-size: 10px;
    }

    .md-discovery__benefit small {
        font-size: 9px;
    }

    .md-discovery__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .md-field-card {
        min-height: 0;
        border-radius: 14px;
    }

    .md-field-card__link {
        min-height: 170px;
        padding: 17px 15px;
    }

    .md-field-card__image {
        width: 50%;
        opacity: .70;
    }

    .md-field-card__overlay {
        background: linear-gradient(
            90deg,
            rgba(255,255,255,.99) 0%,
            rgba(255,255,255,.94) 50%,
            rgba(255,255,255,.25) 100%
        );
    }

    .md-field-card__body {
        display: grid;

        grid-template-columns:
            45px
            minmax(0, 1fr);

        grid-template-areas:
            "icon title"
            "icon description"
            ". visit";

        column-gap: 11px;
        align-items: start;

        min-height: 136px;
    }

    .md-field-card__icon {
        grid-area: icon;
        width: 45px;
        height: 45px;
        margin: 0;
    }

    .md-field-card__icon i {
        font-size: 19px;
    }

    .md-field-card__title {
        grid-area: title;

        margin: 1px 0 5px;
        font-size: 21px;
    }

    .md-field-card__description {
        grid-area: description;

        max-width: 80%;
        margin: 0;

        font-size: 12px;
        line-height: 1.45;
    }

    .md-field-card__visit {
        grid-area: visit;
        justify-self: start;

        margin-top: 10px;
        min-height: 29px;

        font-size: 11px;
    }
}

/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .md-discovery__container {
        width: calc(100% - 26px);
    }

    .md-discovery__title {
        font-size: 36px;
    }

    .md-field-card__link {
        padding: 15px 12px;
    }

    .md-field-card__title {
        font-size: 19px;
    }

    .md-field-card__description {
        font-size: 11px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .md-field-card,
    .md-field-card__image,
    .md-field-card__visit,
    .md-discovery__cta {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================
   MENDELEY.ID — SECTION 3 FINAL FIX
   Horizontal Overflow + Bottom Spacing
========================================== */

/* Prevent horizontal page scrolling */

html,
body.md-homepage {
    max-width: 100%;
    overflow-x: clip;
}

/* Keep fog layers within screen width */

.md-tools::before,
.md-tools::after {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Preserve fog animation without side movement */

.md-tools::before {
    animation: md-safe-fog 16s ease-in-out
        infinite alternate !important;
}

.md-tools::after {
    animation: md-safe-fog 19s ease-in-out
        infinite alternate-reverse !important;
}

@keyframes md-safe-fog {
    from {
        opacity: .65;
    }

    to {
        opacity: .9;
    }
}

/* Remove excessive empty space */

.md-discovery {
    padding-bottom: 42px !important;
}

/* Keep section and cards inside container */

.md-discovery__container,
.md-discovery__layout,
.md-discovery__grid {
    max-width: 100%;
    min-width: 0;
}

/* Tablet */

@media (max-width: 900px) {
    .md-discovery {
        padding-bottom: 45px !important;
    }
}

/* Mobile */

@media (max-width: 640px) {
    .md-discovery {
        padding-bottom: 38px !important;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .md-tools::before,
    .md-tools::after {
        animation: none !important;
    }
}
