﻿/* Template One: free practice material */

/* Free practice material callout
   -------------------------------------------------------------------------- */
.dd-free-material {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 2.5vw, 32px) 0 clamp(24px, 2.8vw, 36px);
  background:
    radial-gradient(circle at 10% 15%, rgba(8, 120, 237, 0.055), transparent 25%),
    linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

.dd-free-material__container {
  width: min(calc(100% - (var(--edge) * 2)), 1440px);
  margin-inline: auto;
}

.dd-free-material__card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(390px, 31vw, 475px);
  overflow: hidden;
  border-radius: clamp(24px, 2.4vw, 36px);
  background-color: #ffffff;
  background-image: url("../../../images/product/section-bg-3.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  box-shadow:
    0 18px 42px rgba(10, 34, 86, 0.11),
    inset 0 0 0 7px rgba(255, 255, 255, 0.9);
}

.dd-free-material__content {
  position: relative;
  z-index: 2;
  width: 56%;
  padding: clamp(36px, 4.4vw, 60px) clamp(42px, 7.2vw, 108px);
}

.dd-free-material__title {
  margin: 0;
  color: #173154;
  font-size: clamp(34px, 3.25vw, 52px);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.18;
  text-transform: uppercase;
}

.dd-free-material__line {
  display: block;
}

.dd-free-material__title strong {
  color: var(--color-blue);
  font-weight: 800;
}

.dd-free-material__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: clamp(236px, 22vw, 286px);
  min-height: 62px;
  margin-top: clamp(30px, 3.2vw, 46px);
  padding: 10px 14px 10px 28px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #f02b31 0%, #eb2028 52%, #dc111c 100%);
  box-shadow: 0 14px 28px rgba(223, 0, 31, 0.22);
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dd-free-material__button-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--color-blue);
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(10, 34, 86, 0.08);
}

.dd-free-material__button-icon i,
.dd-free-material__button-icon i::before {
  font-size: 20px;
}

.dd-free-material__button-icon i {
  transition: transform 180ms ease;
}

.dd-free-material__button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #dd001f 0%, var(--color-red-deep) 100%);
  box-shadow: 0 17px 34px rgba(182, 0, 24, 0.27);
  transform: translateY(-2px);
}

.dd-free-material__button:hover .dd-free-material__button-icon i {
  transform: translateX(3px);
}

.dd-free-material__button:focus-visible {
  outline: 3px solid rgba(8, 120, 237, 0.35);
  outline-offset: 5px;
}

@media (max-width: 1180px) {
  .dd-free-material__card {
    min-height: 440px;
    background-position: 56% center;
  }

  .dd-free-material__content {
    width: 57%;
    padding-inline: clamp(38px, 5vw, 64px);
  }

  .dd-free-material__title {
    font-size: clamp(34px, 4vw, 44px);
  }
}

@media (max-width: 900px) {
  .dd-free-material__card {
    min-height: 450px;
    background-position: 61% center;
    background-size: auto 100%;
  }

  .dd-free-material__card::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 45%, rgba(255, 255, 255, 0.32) 67%, rgba(255, 255, 255, 0) 82%);
    content: "";
    pointer-events: none;
  }

  .dd-free-material__content {
    width: 58%;
    padding: 42px 42px;
  }

  .dd-free-material__title {
    font-size: clamp(31px, 4.8vw, 39px);
  }

  .dd-free-material__button {
    min-width: 236px;
    min-height: 58px;
    margin-top: 30px;
    font-size: 18px;
  }

  .dd-free-material__button-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 699px) {
  .dd-free-material {
    padding: 20px 0 24px;
  }

  .dd-free-material__container {
    width: min(calc(100% - 28px), 520px);
  }

  .dd-free-material__card {
    display: block;
    height: auto;
    min-height: 0;
    border-radius: 26px;
    background-color: #ffffff;
    background-position: 68% center;
    background-size: auto 100%;
    box-shadow:
      0 15px 34px rgba(10, 34, 86, 0.11),
      inset 0 0 0 5px rgba(255, 255, 255, 0.94);
  }

  .dd-free-material__card::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 40%,
      rgba(255, 255, 255, 0.72) 66%,
      rgba(255, 255, 255, 0.28) 100%
    );
  }

  .dd-free-material__content {
    width: 100%;
    text-align: center;
  }

  .dd-free-material__title {
    font-size: clamp(27px, 7.6vw, 36px);
    letter-spacing: 0;
    line-height: 1.19;
  }

  .dd-free-material__line:last-child {
    margin-top: 2px;
  }

  .dd-free-material__button {
    width: min(100%, 220px);
    min-width: 0;
    min-height: 50px;
    margin-top: 22px;
    padding: 8px 9px 8px 19px;
    border-radius: 15px;
    font-size: 16px;
    text-align: left;
  }

  .dd-free-material__button-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 430px) {
  .dd-free-material__card {
    height: auto;
    min-height: 0;
    background-position: 68% center;
    background-size: auto 100%;
  }
.dd-free-material__title {
    font-size: clamp(25px, 7.3vw, 31px);
  }

  .dd-free-material__button {
    width: min(100%, 208px);
    min-height: 48px;
    margin-top: 20px;
    padding: 7px 8px 7px 17px;
    border-radius: 14px;
    font-size: 15px;
  }

  .dd-free-material__button-icon {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dd-free-material__button,
  .dd-free-material__button-icon i {
    transition: none;
  }
}

@media (min-width: 1181px) {
  .dd-free-material__content {
    width: 62%;
    padding-right: 0;
    padding-left: clamp(72px, 7.2vw, 104px);
  }
}

