/* =========================================================
   MANUALS PAGE
   ========================================================= */

.manuals-page {
  padding: 14px 0 72px;
  background: var(--background, #faf9f7);
}

/* =========================================================
   INTRO
   ========================================================= */

.manuals-intro {
  margin-bottom: 24px;
  padding: 24px 26px;

  background: linear-gradient(135deg, #fff8f2 0%, #ffffff 100%);

  border: 1px solid var(--border, #ebe7e2);
  border-radius: 18px;

  box-shadow: var(--shadow, 0 8px 28px rgba(45, 49, 53, 0.06));
}

.manuals-intro > span {
  display: block;

  margin-bottom: 6px;

  color: var(--orange, #f58220);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.manuals-intro h2 {
  margin: 0 0 7px;

  color: var(--text, #2d3135);

  font-size: 26px;
  font-weight: 700;
}

.manuals-intro p {
  max-width: 680px;

  margin: 0;

  color: var(--text-soft, #6f757b);

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

/* =========================================================
   GRID
   ========================================================= */

.manuals-grid {
  display: grid;

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

  gap: 20px;
}

.manuals-grid--single {
  grid-template-columns: minmax(0, 360px);
}

/* =========================================================
   MANUAL CARD
   ========================================================= */

.manual-card {
  overflow: hidden;

  background: #ffffff;

  border: 1px solid var(--border, #ebe7e2);
  border-radius: 18px;

  box-shadow: 0 6px 22px rgba(45, 49, 53, 0.05);

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

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

  border-color: #f0d3ba;

  box-shadow: 0 12px 32px rgba(45, 49, 53, 0.09);
}

/* =========================================================
   IMAGE
   ========================================================= */

.manual-card__image {
  position: relative;

  display: flex;

  min-height: 330px;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 18px;

  background: linear-gradient(145deg, #ffffff 0%, #f8f7f5 100%);

  border-bottom: 1px solid var(--border, #ebe7e2);

  text-decoration: none;
}

.manual-card__image img {
  display: block;

  width: 100%;
  height: 290px;

  object-fit: contain;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.manual-card:hover .manual-card__image img {
  transform: scale(1.025);
}

/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.manual-card__overlay {
  position: absolute;

  right: 14px;
  bottom: 14px;

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 8px 11px;

  background: rgba(255, 255, 255, 0.96);

  color: var(--orange, #f58220);

  border: 1px solid var(--border, #ebe7e2);
  border-radius: 9px;

  box-shadow: 0 5px 16px rgba(45, 49, 53, 0.08);

  font-size: 11px;
  font-weight: 650;

  opacity: 0;

  transform: translateY(4px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.manual-card:hover .manual-card__overlay {
  opacity: 1;

  transform: translateY(0);
}

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

.manual-card__content {
  padding: 18px 19px 19px;
}

.manual-card__content > span {
  display: block;

  margin-bottom: 5px;

  color: var(--orange, #f58220);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 1px;
  text-transform: uppercase;
}

.manual-card__content h3 {
  min-height: 48px;

  margin: 0 0 14px;

  color: var(--text, #2d3135);

  font-size: 16px;
  font-weight: 700;

  line-height: 1.45;
}

.manual-card__content > a {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: var(--orange-dark, #df6e0d);

  font-size: 12px;
  font-weight: 650;

  text-decoration: none;

  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

.manual-card__content > a:hover {
  color: var(--orange, #f58220);

  gap: 11px;
}

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

@media (max-width: 991.98px) {
  .manuals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manuals-grid--single {
    grid-template-columns: minmax(0, 360px);
  }

  .manual-card__image {
    min-height: 300px;
  }

  .manual-card__image img {
    height: 260px;
  }
}

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

@media (max-width: 767.98px) {
  .manuals-page {
    padding-bottom: 48px;
  }

  .manuals-intro {
    padding: 20px;
  }

  .manuals-intro h2 {
    font-size: 22px;
  }

  .manuals-intro p {
    font-size: 13px;
  }

  .manuals-grid,
  .manuals-grid--single {
    grid-template-columns: 1fr;
  }

  .manual-card__image {
    min-height: 280px;
  }

  .manual-card__image img {
    height: 245px;
  }

  .manual-card__overlay {
    opacity: 1;

    transform: none;
  }
}

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

@media (max-width: 480px) {
  .manuals-intro {
    padding: 17px;
  }

  .manual-card__image {
    min-height: 250px;

    padding: 14px;
  }

  .manual-card__image img {
    height: 220px;
  }

  .manual-card__content {
    padding: 16px;
  }

  .manual-card__content h3 {
    min-height: auto;

    font-size: 15px;
  }
}



/* =========================================================
   MANUALS LAYOUT
   ========================================================= */

.manuals-layout {
    display: grid;

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

    gap: 28px;

    align-items: start;
}

.manuals-main {
    min-width: 0;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.manuals-sidebar {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border, #ebe7e2);
    border-radius: 18px;

    box-shadow: var(
        --shadow,
        0 8px 28px rgba(45, 49, 53, 0.06)
    );
}

.manuals-sidebar__header {
    padding: 22px 22px 18px;

    background:
        linear-gradient(
            135deg,
            #fff8f2 0%,
            #ffffff 100%
        );

    border-bottom: 1px solid var(--border, #ebe7e2);
}

.manuals-sidebar__header span {
    display: block;

    margin-bottom: 4px;

    color: var(--orange, #f58220);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.manuals-sidebar__header h2 {
    margin: 0;

    color: var(--text, #2d3135);

    font-size: 19px;
    font-weight: 700;
}


/* =========================================================
   SIDEBAR LIST
   ========================================================= */

.manuals-sidebar__list {
    padding: 8px;
}

.manuals-sidebar__item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 11px;

    color: var(--text, #2d3135);

    border-radius: 11px;

    text-decoration: none;

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

.manuals-sidebar__item:hover {
    background: var(--orange-soft, #fff8f2);

    color: var(--orange-dark, #df6e0d);

    transform: translateX(2px);
}

.manuals-sidebar__item-icon {
    display: flex;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    background: var(--orange-light, #fff3e8);

    color: var(--orange, #f58220);

    border-radius: 9px;

    font-size: 13px;
}

.manuals-sidebar__item-content {
    display: flex;

    flex: 1;
    min-width: 0;

    flex-direction: column;

    gap: 1px;
}

.manuals-sidebar__item-content strong {
    overflow: hidden;

    color: inherit;

    font-size: 13px;
    font-weight: 650;

    line-height: 1.35;

    text-overflow: ellipsis;
}

.manuals-sidebar__item-content small {
    color: var(--text-soft, #6f757b);

    font-size: 11px;
}

.manuals-sidebar__item-arrow {
    color: #b8b8b8;

    font-size: 10px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.manuals-sidebar__item:hover
.manuals-sidebar__item-arrow {
    color: var(--orange, #f58220);

    transform: translateX(2px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {

    .manuals-layout {
        grid-template-columns: 240px minmax(0, 1fr);

        gap: 20px;
    }
}


@media (max-width: 767.98px) {

    .manuals-layout {
        display: block;
    }

    .manuals-sidebar {
        display: none;
    }
}