/* =========================================================
   EBOOKS HERO
   /ebooks/
   Clean version: Desktop + Tablet + Mobile
========================================================= */


/* =========================================================
   BASE / DESKTOP
========================================================= */

.gc-ebooks-hero {
  position: relative;

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

  overflow: hidden;

  background: #777777;
}


.gc-ebooks-hero__bg {
  position: relative;

  display: flex;
  align-items: center;

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

  padding:
    80px
    clamp(64px, 6.5vw, 130px) !important;

  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;

  isolation: isolate;
}


/* Contrast protection behind the copy only */

.gc-ebooks-hero__bg::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.52) 0%,
      rgba(0, 0, 0, 0.34) 24%,
      rgba(0, 0, 0, 0.10) 46%,
      rgba(0, 0, 0, 0) 66%
    );
}


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

.gc-ebooks-hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 610px;

  font-family:
    "Inter",
    sans-serif;
}


/* =========================================================
   EYEBROW
========================================================= */

.gc-ebooks-hero-content__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;

  margin:
    0
    0
    24px;

  color:
    rgba(255, 255, 255, 0.76);

  font-size: 10px;
  font-weight: 700;
  line-height: 1;

  letter-spacing: 0.28em;

  text-transform: uppercase;
}


.gc-ebooks-hero-content__eyebrow::before {
  content: "";

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

  background:
    rgba(255, 255, 255, 0.88);
}


/* =========================================================
   TITLE
========================================================= */

.gc-ebooks-hero-content__title {
  width: 100%;
  max-width: 600px;

  margin:
    0
    0
    28px;

  padding: 0;

  font-family:
    "Inter",
    sans-serif;

  font-size:
    clamp(
      58px,
      5vw,
      82px
    );

  line-height: 0.91;

  letter-spacing:
    -0.055em;
}


.gc-ebooks-hero-content__strong {
  display: block;

  color: #ffffff;

  font-weight: 850;
}


.gc-ebooks-hero-content__light {
  display: block;

  margin-top: 7px;

  color:
    rgba(255, 255, 255, 0.82);

  font-weight: 400;
  font-style: italic;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.gc-ebooks-hero-content__description {
  width: 100%;
  max-width: 535px;

  margin:
    0
    0
    34px;

  color:
    rgba(255, 255, 255, 0.80);

  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}


/* =========================================================
   CTA — DESKTOP
========================================================= */

.gc-ebooks-hero-content__button {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding:
    15px
    26px;

  color:
    #ffffff !important;

  background:
    rgba(0, 0, 0, 0.16);

  border:
    1px solid
    rgba(255, 255, 255, 0.68);

  font-size: 11px;
  font-weight: 800;
  line-height: 1;

  letter-spacing: 0.10em;

  text-decoration:
    none !important;

  text-transform:
    uppercase;

  backdrop-filter:
    blur(3px);

  -webkit-backdrop-filter:
    blur(3px);

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}


.gc-ebooks-hero-content__button:hover {
  background:
    rgba(255, 255, 255, 0.12);

  border-color:
    #ffffff;

  transform:
    translateY(-2px);
}


/* =========================================================
   TABLET / IPAD
   Keep the text compact on the left and move the artwork
   to the right so the two never overlap.
========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

  .gc-ebooks-hero,
  .gc-ebooks-hero__bg {
    min-height: 680px;
  }


  .gc-ebooks-hero__bg {
    align-items: center;

    padding:
      58px
      48px !important;

    background-size:
      auto 88% !important;

    background-position:
      right bottom !important;

    background-repeat:
      no-repeat !important;

    background-color:
      #7d7d7d;
  }


  .gc-ebooks-hero__bg::before {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.26) 28%,
        rgba(0, 0, 0, 0.07) 48%,
        rgba(0, 0, 0, 0) 63%
      );
  }


  .gc-ebooks-hero-content {
    width: 41%;
    max-width: 390px;
  }


  .gc-ebooks-hero-content__eyebrow {
    margin-bottom: 16px;

    font-size: 8px;
    letter-spacing: 0.23em;
  }


  .gc-ebooks-hero-content__eyebrow::before {
    width: 22px;
    flex-basis: 22px;
  }


  .gc-ebooks-hero-content__title {
    max-width: 390px;

    margin-bottom: 18px;

    font-size:
      clamp(
        42px,
        5.3vw,
        56px
      );

    line-height: 0.94;
  }


  .gc-ebooks-hero-content__description {
    max-width: 330px;

    margin-bottom: 26px;

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


  .gc-ebooks-hero-content__button {
    min-height: 42px;

    padding:
      12px
      20px;

    background:
      transparent;

    font-size: 9px;
  }

}


/* =========================================================
   MOBILE
   Copy top / artwork center / CTA true bottom
========================================================= */
/* =========================================================
   EBOOKS HERO — MOBILE
   SIMPLE / FINAL
========================================================= */

@media (max-width: 767px) {

  .gc-ebooks-hero,
  .gc-ebooks-hero__bg {
    min-height: 760px;
  }

  .gc-ebooks-hero__bg {
    display: block;

    padding:
      72px
      20px
      40px !important;

    background-size:
      cover !important;

    background-position:
      center bottom !important;

    background-repeat:
      no-repeat !important;
  }

  .gc-ebooks-hero__bg::before {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.34) 0%,
        rgba(0, 0, 0, 0.18) 35%,
        rgba(0, 0, 0, 0) 65%
      );
  }

  .gc-ebooks-hero-content {
    position: relative;
    z-index: 2;

    display: block;

    width: 100%;
    max-width: none;
    min-height: 0;
  }

  .gc-ebooks-hero-content__eyebrow {
    margin-bottom: 16px;

    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .gc-ebooks-hero-content__title {
    margin:
      0
      0
      20px;

    font-size:
      clamp(
        42px,
        11.5vw,
        54px
      );

    line-height: 0.92;
  }

  .gc-ebooks-hero-content__description {
    max-width: 340px;

    margin:
      0
      0
      26px;

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

  .gc-ebooks-hero-content__button {
    position: relative;

    display: inline-flex;

    width: auto;
    min-height: 0;

    margin: 0;

    padding:
      0
      0
      7px;

    color: #ffffff !important;

    background:
      transparent !important;

    border: 0;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: 0.12em;

    text-decoration:
      none !important;

    transform: none;
  }

  .gc-ebooks-hero-content__button::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 50px;
    height: 1px;

    background: #ffffff;
  }

}

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

@media (max-width: 390px) {

  .gc-ebooks-hero,
  .gc-ebooks-hero__bg {
    min-height: 750px;
  }


  .gc-ebooks-hero__bg {
    padding:
      24px
      18px !important;

    background-position:
      center
      calc(100% - 54px) !important;
  }


  .gc-ebooks-hero-content {
    min-height:
      702px;
  }


  .gc-ebooks-hero-content__title {
    font-size:
      clamp(
        40px,
        11.5vw,
        50px
      );
  }


  .gc-ebooks-hero-content__description {
    max-width: 320px;

    font-size: 13px;
  }

}



/* =========================================================
   GRANT CARDONE — BOOK LIBRARY
========================================================= */

.gc-book-library {
  --gc-book-surface: #ffffff;
  --gc-book-border: rgba(16, 24, 32, 0.10);
  --gc-book-border-strong: rgba(16, 24, 32, 0.16);
  --gc-book-title: #101820;
  --gc-book-copy: #5e6873;
  --gc-book-accent: #cf102d;
  --gc-book-accent-dark: #9f0c22;
  --gc-book-line: #d8dde2;
  --gc-book-button-dark: #101820;

  padding: 96px 0 110px;
}

.gc-book-library__inner {
  width: 100%;
  max-width: 1720px; /* ajusta si quieres igualarlo exacto al hero */
  margin: 0 auto;
  padding: 0 40px;   /* mismo feeling que el hero */
}

.gc-book-library__header {
  max-width: 920px;
  margin: 0 auto 56px;
  text-align: center;
}

.gc-book-library__eyebrow {
  margin: 0 0 16px;
  color: var(--gc-book-accent);

  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gc-book-library__title {
  margin: 0 0 18px;
  color: var(--gc-book-title);

  font-family: "Inter", sans-serif;
  font-size: 54px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -2px;
}

.gc-book-library__intro {
  margin: 0;
  color: var(--gc-book-copy);

  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
}

.gc-book-library__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

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

.gc-book-card {
  position: relative;

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

  min-height: 470px;

  background: var(--gc-book-surface);
  border: 1px solid var(--gc-book-border);

  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.gc-book-card:hover {
  transform: translateY(-6px);
  border-color: var(--gc-book-border-strong);
  box-shadow: 0 18px 36px rgba(16, 24, 32, 0.08);
}

/* HIDE NUMBER */
.gc-book-card__number {
  display: none;
}

.gc-book-card__media {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  padding: 44px 32px;

  background: #ffffff;
  border-right: 1px solid var(--gc-book-line);

  text-decoration: none;
}

.gc-book-card__image-frame {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 250px;   /* bigger books */
  aspect-ratio: 3 / 4;

  background: #ffffff;
}

.gc-book-card__image-frame img {
  display: block;

  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;

  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.12));
}

.gc-book-card:hover .gc-book-card__image-frame img {
  transform: scale(1.03);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.16));
}

.gc-book-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 48px 42px;
}

.gc-book-card__title {
  margin: 0 0 18px;
  color: var(--gc-book-title);

  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.15px;
}

.gc-book-card__text {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--gc-book-copy);

  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

/* =========================================================
   BOOK CTA — SAME STYLE FOR LINKS + BUTTONS
========================================================= */

.gc-book-card__button,
button.gc-book-card__button,
a.gc-book-card__button {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 340px;
  min-height: 48px;

  margin: 0;
  padding: 15px 26px;

  overflow: hidden;
  isolation: isolate;

  border: 0 !important;
  border-radius: 0 !important;

  background: var(--gc-book-accent) !important;
  color: #ffffff !important;

  appearance: none;
  -webkit-appearance: none;

  font-family: "Inter", sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  letter-spacing: 0.14em !important;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none !important;

  cursor: pointer;

  box-shadow: none;
  transform: translateY(0);

  transition:
    color 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    letter-spacing 0.3s ease;
}


/* DARK SWEEP */

.gc-book-card__button::before,
button.gc-book-card__button::before,
a.gc-book-card__button::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      135deg,
      #20262b 0%,
      #080b0e 100%
    );

  transform: scaleX(0);
  transform-origin: right center;

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}


/* LIGHT SWEEP */

.gc-book-card__button::after,
button.gc-book-card__button::after,
a.gc-book-card__button::after {
  content: "";

  position: absolute;
  top: -45%;
  bottom: -45%;
  left: -35%;

  width: 20%;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.35),
      transparent
    );

  transform:
    translateX(0)
    rotate(14deg);

  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}


/* HOVER */

.gc-book-card__button:hover,
.gc-book-card__button:focus-visible,
button.gc-book-card__button:hover,
button.gc-book-card__button:focus-visible,
a.gc-book-card__button:hover,
a.gc-book-card__button:focus-visible {
  color: #ffffff !important;
  background: var(--gc-book-accent) !important;

  transform: translateY(-3px);

  letter-spacing: 0.16em !important;

  box-shadow:
    0 14px 30px rgba(207, 16, 45, 0.24),
    0 6px 14px rgba(0, 0, 0, 0.14);
}

.gc-book-card__button:hover::before,
.gc-book-card__button:focus-visible::before,
button.gc-book-card__button:hover::before,
button.gc-book-card__button:focus-visible::before,
a.gc-book-card__button:hover::before,
a.gc-book-card__button:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.gc-book-card__button:hover::after,
.gc-book-card__button:focus-visible::after,
button.gc-book-card__button:hover::after,
button.gc-book-card__button:focus-visible::after,
a.gc-book-card__button:hover::after,
a.gc-book-card__button:focus-visible::after {
  transform:
    translateX(720%)
    rotate(14deg);
}


/* CLICK */

.gc-book-card__button:active {
  transform:
    translateY(-1px)
    scale(0.99);

  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.12);
}


/* KEYBOARD FOCUS */

.gc-book-card__button:focus-visible {
  outline: 2px solid rgba(207, 16, 45, 0.28);
  outline-offset: 4px;
}

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

@media (max-width: 1180px) {
  .gc-book-library__title {
    font-size: 46px;
  }

  .gc-book-library__grid {
    grid-template-columns: 1fr;
  }

  .gc-book-card {
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 430px;
  }

  .gc-book-card__image-frame {
    max-width: 220px;
  }
}

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

@media (max-width: 767px) {
  .gc-book-library {
    padding: 68px 0 78px;
  }

  .gc-book-library__inner {
    padding: 0 20px;
  }

  .gc-book-library__header {
    margin-bottom: 36px;
  }

  .gc-book-library__title {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -1.3px;
  }

  .gc-book-library__intro {
    font-size: 15px;
    line-height: 1.7;
  }

  .gc-book-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .gc-book-card__media {
    padding: 34px 24px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--gc-book-line);
  }

  .gc-book-card__image-frame {
    max-width: 190px;
  }

  .gc-book-card__content {
    padding: 28px 22px 24px;
  }

  .gc-book-card__title {
    font-size: 24px;
    letter-spacing: -0.9px;
  }

  .gc-book-card__text {
    font-size: 15px;
    line-height: 1.72;
    margin-bottom: 22px;
  }

  .gc-book-card__button {
    width: 100%;
    min-width: 0;
  }
}


/* =========================================================
   BOOK DOWNLOAD MODAL
========================================================= */

.gc-book-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;

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

  padding: 30px;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.gc-book-modal.is-open {
  opacity: 1;
  visibility: visible;
}


/* BACKDROP */

.gc-book-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(9, 12, 15, 0.78);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}


/* MODAL */

.gc-book-modal__dialog {
  position: relative;
  z-index: 2;

  width: min(620px, 100%);
  max-height: calc(100vh - 60px);

  overflow-y: auto;

  background: #ffffff;

  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.34);

  transform:
    translateY(24px)
    scale(0.97);

  transition:
    transform 0.42s
    cubic-bezier(0.22, 1, 0.36, 1);
}

.gc-book-modal.is-open
.gc-book-modal__dialog {
  transform:
    translateY(0)
    scale(1);
}


/* CLOSE */

.gc-book-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 5;

  width: 38px;
  height: 38px;

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

  padding: 0;

  border: 0;
  background: transparent;

  color: #101820;

  font-size: 30px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    color 0.25s ease,
    transform 0.3s ease;
}

.gc-book-modal__close:hover {
  color: #cf102d;
  transform: rotate(90deg);
}


/* =========================================================
   HEADER
========================================================= */

.gc-book-modal__header {
  padding: 48px 52px 30px;
}

.gc-book-modal__eyebrow {
  display: block;

  margin: 0 0 14px;

  color: #cf102d;

  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;

  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.gc-book-modal__title {
  max-width: 510px;

  margin: 0;

  color: #101820;

  font-family: "Inter", sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.02;

  letter-spacing: -1.7px;
}


/* Small accent AFTER title — no top border 😂 */

.gc-book-modal__accent {
  display: block;

  width: 42px;
  height: 3px;

  margin: 20px 0 18px;

  background: #cf102d;

  transform-origin: left center;

  transition:
    width 0.5s
    cubic-bezier(0.22, 1, 0.36, 1);
}

.gc-book-modal.is-open
.gc-book-modal__accent {
  width: 78px;
}


.gc-book-modal__intro {
  max-width: 500px;

  margin: 0;

  color: #626b73;

  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}


/* =========================================================
   FORM AREA
========================================================= */

.gc-book-modal__form {
  padding: 0 52px 48px;
}


/* HUBSPOT */

.gc-book-modal .hs-form {
  font-family: "Inter", sans-serif !important;
}

.gc-book-modal .hs-form-field {
  margin-bottom: 18px !important;
}

.gc-book-modal .hs-form-field > label {
  display: block;

  margin-bottom: 7px;

  color: #101820 !important;

  font-family: "Inter", sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.gc-book-modal .hs-input {
  width: 100% !important;
  min-height: 50px;

  padding: 10px 13px !important;

  border: 1px solid #d7dadd !important;
  border-radius: 0 !important;

  background: #ffffff !important;
  color: #101820 !important;

  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;

  box-shadow: none !important;
  outline: none !important;

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

.gc-book-modal .hs-input:focus {
  border-color: #cf102d !important;

  box-shadow:
    0 0 0 3px
    rgba(207, 16, 45, 0.07) !important;
}


.gc-book-modal textarea.hs-input {
  min-height: 110px;
  resize: vertical;
}


/* HUBSPOT SUBMIT */

.gc-book-modal .hs-button {
  position: relative;

  width: auto !important;
  min-width: 175px;
  min-height: 48px;

  padding: 14px 26px !important;

  border: 1px solid #cf102d !important;
  border-radius: 0 !important;

  background: #cf102d !important;
  color: #ffffff !important;

  font-family: "Inter", sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  letter-spacing: 0.14em !important;
  text-transform: uppercase;

  box-shadow: none !important;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.gc-book-modal .hs-button:hover {
  background: #101820 !important;
  border-color: #101820 !important;

  transform: translateY(-2px);
}


/* REMOVE HUBSPOT DEFAULT WEIRD SPACING */

.gc-book-modal .hs-form ul {
  padding-left: 0;
}

.gc-book-modal .hs-error-msgs {
  margin-top: 5px;
}

.gc-book-modal .hs-error-msg {
  color: #cf102d !important;
  font-size: 11px !important;
}


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

@media (max-width: 767px) {

  .gc-book-modal {
    padding: 16px;
  }

  .gc-book-modal__dialog {
    max-height: calc(100vh - 32px);
  }

  .gc-book-modal__header {
    padding:
      42px
      24px
      25px;
  }

  .gc-book-modal__title {
    padding-right: 20px;

    font-size: 30px;
    line-height: 1.03;

    letter-spacing: -1.2px;
  }

  .gc-book-modal__intro {
    font-size: 14px;
  }

  .gc-book-modal__form {
    padding:
      0
      24px
      30px;
  }

  .gc-book-modal__close {
    top: 12px;
    right: 12px;
  }

  .gc-book-modal .hs-button {
    width: 100% !important;
  }

}